mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-30 10:22:33 +08:00
Additional fix to service worker config for "homepage" field (#2262)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user