Additional fix to service worker config for "homepage" field (#2262)

This commit is contained in:
Dan Abramov
2017-05-19 19:41:59 +01:00
committed by GitHub
parent d6d2f6df24
commit 3cd2267256

View File

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