Commit 45c04268 authored by Vincenzo Chianese's avatar Vincenzo Chianese Committed by Dan Abramov
Browse files

Update webpack prod config (#1181)

parent 6ebec23a
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment