Skip to content

Commit a92a385

Browse files
committed
update webpack
1 parent 469ff06 commit a92a385

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

webpack.config.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ const TerserPlugin = require("terser-webpack-plugin");
33
const glob = require("glob");
44

55
module.exports = {
6-
mode: "production",
7-
entry: {
8-
"bundle.js": glob.sync("build/static/?(js|css)/main.*.?(js|css)").map(f => path.resolve(__dirname, f)),
9-
},
10-
output: {
11-
filename: "build/static/js/bundle.min.js",
12-
},
13-
module: {
14-
rules: [
15-
{
16-
test: /\.css$/,
17-
use: ["style-loader", "css-loader"],
18-
},
19-
],
20-
},
21-
optimization: {
22-
minimize: true,
23-
minimizer: [new TerserPlugin()],
24-
},
6+
mode: "production",
7+
entry: {
8+
"bundle.js": glob.sync("build/static/?(js|css)/main.*.?(js|css)").map(f => path.resolve(__dirname, f)),
9+
},
10+
output: {
11+
filename: "build/static/js/bundle.min.js",
12+
},
13+
module: {
14+
rules: [
15+
{
16+
test: /\.css$/,
17+
use: ["style-loader", "css-loader"],
18+
},
19+
],
20+
},
21+
optimization: {
22+
minimize: true,
23+
minimizer: [new TerserPlugin()],
24+
}
2525
};

0 commit comments

Comments
 (0)