File tree 2 files changed +5
-2
lines changed
packages/react-scripts/config
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 17
17
"eslint-plugin-import" : " 1.12.0" ,
18
18
"eslint-plugin-jsx-a11y" : " 2.2.2" ,
19
19
"eslint-plugin-react" : " 6.3.0" ,
20
- "lerna" : " 2.0.0-beta.30"
20
+ "lerna" : " 2.0.0-beta.30" ,
21
+ "offline-plugin" : " ^3.4.2"
21
22
}
22
23
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
16
16
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
17
17
var ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
18
18
var InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
19
+ var OfflinePlugin = require ( 'offline-plugin' ) ;
19
20
var url = require ( 'url' ) ;
20
21
var paths = require ( './paths' ) ;
21
22
var getClientEnvironment = require ( './env' ) ;
@@ -259,7 +260,8 @@ module.exports = {
259
260
// having to parse `index.html`.
260
261
new ManifestPlugin ( {
261
262
fileName : 'asset-manifest.json'
262
- } )
263
+ } ) ,
264
+ new OfflinePlugin ( )
263
265
] ,
264
266
// Some libraries import Node modules but don't use them in the browser.
265
267
// Tell Webpack to provide empty mocks for them so importing them works.
You can’t perform that action at this time.
0 commit comments