Skip to content

Commit

Permalink
Update webpack prod config (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincenzo Chianese authored and gaearon committed Dec 7, 2016
1 parent 6ebec23 commit 45c0426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 45c0426

Please # to comment.