Skip to content

Commit 3cd2267

Browse files
authored
Additional fix to service worker config for "homepage" field (#2262)
1 parent d6d2f6d commit 3cd2267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ module.exports = {
321321
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
322322
// Work around Windows path issue in SWPrecacheWebpackPlugin:
323323
// https://github.com/facebookincubator/create-react-app/issues/2235
324-
stripPrefix: path.join(paths.appBuild).replace(/\\/g, '/'),
324+
stripPrefix: paths.appBuild.replace(/\\/g, '/') + '/',
325325
}),
326326
// Moment.js is an extremely popular library that bundles large locale files
327327
// by default due to how Webpack interprets its code. This is a practical

0 commit comments

Comments
 (0)