1- const  webpack  =  require ( 'webpack' ) ; 
2- const  path  =  require ( 'path' ) ; 
3- 4- /* 
5-  * We've enabled UglifyJSPlugin for you! This minifies your app 
6-  * in order to load faster and run less javascript. 
7-  * 
8-  * https://github.com/webpack-contrib/uglifyjs-webpack-plugin 
9-  * 
10-  */ 
11- 12- const  UglifyJSPlugin  =  require ( 'uglifyjs-webpack-plugin' ) ; 
1+ const  webpack  =  require ( "webpack" ) ; 
2+ const  path  =  require ( "path" ) ; 
3+ const  UglifyJSPlugin  =  require ( "uglifyjs-webpack-plugin" ) ; 
134
145module . exports  =  { 
156 mode : "development" , 
167 stats : {  performance : false  } , 
178
18-  entry : ' ./src/__javascript__/index.js' , 
9+  entry : " ./src/__javascript__/index.js" , 
1910
2011 output : { 
21-  filename : ' bundle.js' , 
22-  path : path . resolve ( __dirname ,  ' dist' ) 
12+  filename : " bundle.js" , 
13+  path : path . resolve ( __dirname ,  " dist" ) 
2314 } , 
2415
2516 module : { 
@@ -31,14 +22,6 @@ module.exports = {
3122 compress : true , 
3223 host : "localhost" , 
3324 port : 3000 
34-  // proxy: { 
35-  // "/api": { 
36-  // target: 'http://metamarcdw.pythonanywhere.com', 
37-  // pathRewrite: { '^/api': '' }, 
38-  // changeOrigin: true, 
39-  // secure: false 
40-  // } 
41-  // } 
4225 } , 
4326
4427 plugins : [ new  UglifyJSPlugin ( ) ] 
0 commit comments