Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
22ca584b
Commit
22ca584b
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Work around Windows path issue in SWPrecacheWebpackPlugin (#2255)
parent
c749de7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.prod.js
+3
-0
packages/react-scripts/config/webpack.config.prod.js
with
3 additions
and
0 deletions
+3
-0
packages/react-scripts/config/webpack.config.prod.js
+
3
-
0
View file @
22ca584b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment