Skip to content

Commit

Permalink
Work around Windows path issue in SWPrecacheWebpackPlugin (facebook#2255
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gaearon authored and romaindso committed Jul 10, 2017
1 parent 1eb8d4a commit ec7731f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
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 ec7731f

Please sign in to comment.