Skip to content

Commit 647f8b9

Browse files
authored
Additional fix to service worker config for "homepage" field (facebook#2262)
1 parent 0e47720 commit 647f8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)