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
45c04268
Commit
45c04268
authored
8 years ago
by
Vincenzo Chianese
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update webpack prod config (#1181)
parent
6ebec23a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/config/webpack.config.prod.js
+4
-0
packages/react-scripts/config/webpack.config.prod.js
with
4 additions
and
0 deletions
+4
-0
packages/react-scripts/config/webpack.config.prod.js
+
4
-
0
View file @
45c04268
...
...
@@ -81,6 +81,10 @@ module.exports = {
// We don't currently advertise code splitting but Webpack supports it.
filename
:
'
static/js/[name].[chunkhash:8].js
'
,
chunkFilename
:
'
static/js/[name].[chunkhash:8].chunk.js
'
,
// Given Webpack supports codesplit and production bundles are using
// subresource integrity, it's important to make sure the attribute
// set on async-loaded chunks is set to anonymous.
crossOriginLoading
:
'
anonymous
'
,
// We inferred the "public path" (such as / or /my-project) from homepage.
publicPath
:
publicPath
},
...
...
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