Commit df4e243a authored by Phil Hughes's avatar Phil Hughes

fixed webpack generating too many bundles

parent ccce94fd
...@@ -31,7 +31,7 @@ var dispatcherChunks = dispatcher.match(/(?!import\(')\.\/pages\/[^']+/g); ...@@ -31,7 +31,7 @@ var dispatcherChunks = dispatcher.match(/(?!import\(')\.\/pages\/[^']+/g);
pageEntries.forEach(( path ) => { pageEntries.forEach(( path ) => {
let chunkPath = path.replace(/\/index\.js$/, ''); let chunkPath = path.replace(/\/index\.js$/, '');
if (!dispatcherChunks.includes(chunkPath)) { if (!dispatcherChunks.includes('./' + chunkPath)) {
let chunkName = chunkPath.replace(/\//g, '.'); let chunkName = chunkPath.replace(/\//g, '.');
autoEntries[chunkName] = './' + path; autoEntries[chunkName] = './' + path;
} }
......
Markdown is supported
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