File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.0.1" ,
44 "private" : true ,
55 "scripts" : {
6- "build" : " NODE_ENV=' production' webpack --config webpack.config.js --mode production" ,
6+ "build" : " NODE_ENV=production webpack --config webpack.config.js --mode production" ,
77 "start" : " webpack-dev-server"
88 },
99 "dependencies" : {
Original file line number Diff line number Diff line change 11const CopyWebpackPlugin = require ( "copy-webpack-plugin" ) ;
22const path = require ( "path" ) ;
33
4+ const isProduction = process . env . NODE_ENV === 'production' ;
5+ const publicPath = isProduction ? '/dogfooding/' : '/' ;
6+
47module . exports = {
58 entry : "./src/index.ts" ,
69 output : {
710 path : path . resolve ( __dirname , "build" ) ,
811 filename : "index.js" ,
12+ publicPath : publicPath ,
913 } ,
1014 experiments : {
1115 asyncWebAssembly : true ,
You can’t perform that action at this time.
0 commit comments