@@ -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 ,
@@ -256,10 +256,8 @@ module.exports = {
256
256
}
257
257
]
258
258
} ,
259
-
260
259
plugins : [
261
- new webpack . DefinePlugin ( env . stringified ) ,
262
-
260
+ // Generates an `index.html` file with the <script> injected.
263
261
new HtmlWebpackPlugin ( {
264
262
inject : true ,
265
263
template : paths . appHtml ,
@@ -291,8 +289,8 @@ module.exports = {
291
289
new MiniCssExtractPlugin ( {
292
290
// Options similar to the same options in webpackOptions.output
293
291
// both options are optional
294
- filename : 'static/js /[name].[chunkhash :8].css' ,
295
- chunkFilename : 'static/js /[name].[chunkhash :8].chunk.css'
292
+ filename : 'static/css /[name].[contenthash :8].css' ,
293
+ chunkFilename : 'static/css /[name].[contenthash :8].chunk.css' ,
296
294
} ) ,
297
295
// Generate a manifest file which contains a mapping of all asset filenames
298
296
// to their corresponding output file so that tools can pick it up without
@@ -301,7 +299,6 @@ module.exports = {
301
299
fileName : 'asset-manifest.json' ,
302
300
publicPath : publicPath
303
301
} ) ,
304
-
305
302
// Generate a service worker script that will precache, and keep up to date,
306
303
// the HTML & assets that are part of the Webpack build.
307
304
new SWPrecacheWebpackPlugin ( {
0 commit comments