Skip to content

Commit

Permalink
Work around Windows path issue in SWPrecacheWebpackPlugin (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed May 19, 2017
1 parent c749de7 commit 22ca584
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Expand Up @@ -319,6 +319,9 @@ module.exports = {
minify: true,
navigateFallback: publicUrl + '/index.html',
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
// by default due to how Webpack interprets its code. This is a practical
Expand Down

0 comments on commit 22ca584

Please sign in to comment.