@@ -77,7 +77,7 @@ module.exports = {
77
77
// You can exclude the *.map files from the build during deployment.
78
78
devtool : shouldUseSourceMap ? 'source-map' : false ,
79
79
// In production, we only want to load the polyfills and the app code.
80
- entry : [ /* require.resolve('./polyfills'),*/ paths . appIndexJs ] ,
80
+ entry : [ require . resolve ( './polyfills' ) , paths . appIndexJs ] ,
81
81
output : {
82
82
// The build folder.
83
83
path : paths . appBuild ,
@@ -279,10 +279,8 @@ module.exports = {
279
279
}
280
280
]
281
281
} ,
282
-
283
282
plugins : [
284
- new webpack . DefinePlugin ( env . stringified ) ,
285
-
283
+ // Generates an `index.html` file with the <script> injected.
286
284
new HtmlWebpackPlugin ( {
287
285
inject : true ,
288
286
template : paths . appHtml ,
@@ -314,8 +312,8 @@ module.exports = {
314
312
new MiniCssExtractPlugin ( {
315
313
// Options similar to the same options in webpackOptions.output
316
314
// both options are optional
317
- filename : 'static/js /[name].[chunkhash :8].css' ,
318
- chunkFilename : 'static/js /[name].[chunkhash :8].chunk.css'
315
+ filename : 'static/css /[name].[contenthash :8].css' ,
316
+ chunkFilename : 'static/css /[name].[contenthash :8].chunk.css' ,
319
317
} ) ,
320
318
// Generate a manifest file which contains a mapping of all asset filenames
321
319
// to their corresponding output file so that tools can pick it up without
@@ -324,7 +322,6 @@ module.exports = {
324
322
fileName : 'asset-manifest.json' ,
325
323
publicPath : publicPath
326
324
} ) ,
327
-
328
325
// Generate a service worker script that will precache, and keep up to date,
329
326
// the HTML & assets that are part of the Webpack build.
330
327
new SWPrecacheWebpackPlugin ( {
0 commit comments