File tree 1 file changed +2
-1
lines changed
packages/react-scripts/config
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
15
15
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
16
16
var ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
17
17
var InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
18
+ var SWPrecacheWebpackPlugin = require ( 'sw-precache-webpack-plugin' ) ;
18
19
var url = require ( 'url' ) ;
19
20
var paths = require ( './paths' ) ;
20
21
var getClientEnvironment = require ( './env' ) ;
21
- var SWPrecacheWebpackPlugin = require ( 'sw-precache-webpack-plugin' ) ;
22
22
23
23
// @remove -on-eject-begin
24
24
// `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
@@ -278,6 +278,7 @@ module.exports = {
278
278
new SWPrecacheWebpackPlugin ( {
279
279
dontCacheBustUrlsMatching : / \. \w { 8 } \. / ,
280
280
filename : 'service-worker.js' ,
281
+ minify : true ,
281
282
navigateFallback : publicUrl + '/index.html' ,
282
283
staticFileGlobsIgnorePatterns : [ / \. m a p $ / , / a s s e t - m a n i f e s t \. j s o n $ / ]
283
284
} )
You can’t perform that action at this time.
0 commit comments