Commit 22ca584b authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Work around Windows path issue in SWPrecacheWebpackPlugin (#2255)

parent c749de7f
Showing with 3 additions and 0 deletions
+3 -0
...@@ -319,6 +319,9 @@ module.exports = { ...@@ -319,6 +319,9 @@ module.exports = {
minify: true, minify: true,
navigateFallback: publicUrl + '/index.html', navigateFallback: publicUrl + '/index.html',
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], 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, '/'),
}), }),
// Moment.js is an extremely popular library that bundles large locale files // 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 // by default due to how Webpack interprets its code. This is a practical
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment