We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b836037 commit 5029aedCopy full SHA for 5029aed
packages/react-scripts/config/webpack.config.prod.js
@@ -261,7 +261,13 @@ module.exports = {
261
new ManifestPlugin({
262
fileName: 'asset-manifest.json'
263
}),
264
- new OfflinePlugin()
+ new OfflinePlugin({
265
+ publicPath: publicPath,
266
+ relativePaths: false,
267
+ ServiceWorker: {
268
+ scope: publicPath
269
+ }
270
+ })
271
],
272
// Some libraries import Node modules but don't use them in the browser.
273
// Tell Webpack to provide empty mocks for them so importing them works.
0 commit comments