Skip to content

Commit 89c1672

Browse files
committed
Imp(example): improve webpack config and readme
1 parent f89547c commit 89c1672

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

example/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Then, get it in node process through the [dotenv](https://github.com/motdotla/do
1414

1515
const path = require("path");
1616
const webpack = require("webpack");
17-
const HtmlWebpackPlugin = require("html-webpack-plugin");
1817
const TerserPlugin = require("terser-webpack-plugin");
1918
const HawkWebpackPlugin = require("@hawk.so/webpack-plugin");
2019

@@ -42,9 +41,6 @@ module.exports = {
4241
integrationToken: process.env.HAWK_TOKEN,
4342
release: releaseKey,
4443
}),
45-
new HtmlWebpackPlugin({
46-
template: "./index.html",
47-
}),
4844

4945
/**
5046
* Replace HAWK_TOKEN and RELEASE with actual values

example/webpack.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = {
2424
release: releaseKey,
2525
}),
2626
new webpack.DefinePlugin({
27-
'process.env.HAWK_TOKEN': JSON.stringify(process.env.HAWK_TOKEN),
28-
'process.env.RELEASE': JSON.stringify(releaseKey),
27+
'HAWK_TOKEN': JSON.stringify(process.env.HAWK_TOKEN),
28+
'RELEASE': JSON.stringify(releaseKey),
2929
}),
3030
],
3131
resolve: {

0 commit comments

Comments
 (0)