@@ -8,8 +8,8 @@ const publicPath = '/';
88module . exports = merge ( commonConfig , {
99 devtool : 'source-map' ,
1010 output : {
11- filename : 'static/js/[name].[chunkhash].js' ,
12- chunkFilename : 'static/js/[name].[chunkhash].chunk.js' ,
11+ filename : 'static/js/[name].[chunkhash:8 ].js' ,
12+ chunkFilename : 'static/js/[name].[chunkhash:8 ].chunk.js' ,
1313 sourceMapFilename : '[file].map' , // Default
1414 } ,
1515 plugins : [
@@ -107,6 +107,7 @@ module.exports = merge(commonConfig, {
107107 // about it being stale, and the cache-busting can be skipped.
108108 dontCacheBustUrlsMatching : / \. \w { 8 } \. / ,
109109 filename : 'sandbox-service-worker.js' ,
110+ cacheId : 'code-sandbox-sandbox' ,
110111 logger ( message ) {
111112 if ( message . indexOf ( 'Total precache size is' ) === 0 ) {
112113 // This message occurs for every build and is a bit too noisy.
@@ -124,7 +125,6 @@ module.exports = merge(commonConfig, {
124125 navigateFallback : 'https://new.codesandbox.io/frame.html' ,
125126 staticFileGlobs : [ 'www/frame.html' ] ,
126127 stripPrefix : 'www/' ,
127- cacheId : 'code-sandbox-sandbox' ,
128128 // Ignores URLs starting from /__ (useful for Firebase):
129129 // https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
130130 navigateFallbackWhitelist : [ / ^ (? ! \/ _ _ ) .* / ] ,
@@ -211,6 +211,5 @@ module.exports = merge(commonConfig, {
211211 // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
212212 // You can remove this if you don't use Moment.js:
213213 new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / ) ,
214- new webpack . optimize . ModuleConcatenationPlugin ( ) ,
215214 ] ,
216215} ) ;
0 commit comments