File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ const TerserPlugin = require("terser-webpack-plugin");
33const glob = require ( "glob" ) ;
44
55module . 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 : / \. c s s $ / ,
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 : / \. c s s $ / ,
17+ use : [ "style-loader" , "css-loader" ] ,
18+ } ,
19+ ] ,
20+ } ,
21+ optimization : {
22+ minimize : true ,
23+ minimizer : [ new TerserPlugin ( ) ] ,
24+ }
2525} ;
You can’t perform that action at this time.
0 commit comments