Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"offline-plugin": "^4.6.2",
"ora": "^1.2.0",
"persist-path": "^1.0.1",
"postcss-less": "^0.16.1",
"postcss-less": "^1.0.2",
"preact": "^8.1.0",
"preact-compat": "^3.14.3",
"preact-render-to-string": "^3.6.0",
Expand All @@ -141,7 +141,7 @@
"tmp": "0.0.31",
"unfetch": "^3.0.0",
"url-loader": "^0.5.8",
"webpack": "^2.3.3",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.4.5",
"webpack-plugin-replace": "^1.1.1",
"which": "^1.2.14",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/webpack/webpack-base-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'path';
import { readFileSync, statSync } from 'fs';
import webpack from 'webpack';
import {
webpack,
group,
customConfig,
setContext,
Expand Down Expand Up @@ -309,6 +309,8 @@ const production = () => addPlugins([
]
}
}),

new webpack.optimize.ModuleConcatenationPlugin()
]);

export function helpers(env) {
Expand Down
6 changes: 3 additions & 3 deletions tests/build.snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const smallBuildCommons = {
'icon.png': { size: 51484 }
},
'polyfills.js': { size: 4620 },
'polyfills.js.map': { size: 31760 },
'polyfills.js.map': { size: 30155 },
'favicon.ico': { size: 15086 },
'sw.js': { size: 3330 },
'manifest.json': { size: 298 },
Expand Down Expand Up @@ -69,7 +69,7 @@ export default {
'route-home.chunk.*.js.map': { size: 4977 },
'route-profile.chunk.*.js': { size: 1660 },
'route-profile.chunk.*.js.map': { size: 8607 },
'polyfills.js.map': { size: 31750 },
'polyfills.js.map': { size: 30155 },
'index.html': { size: 870 },
'style.css': { size: 1065 },
'style.css.map': { size: 2246 },
Expand All @@ -88,7 +88,7 @@ export default {
'route-home.chunk.*.js.map': { size: 4981 },
'route-profile.chunk.*.js': { size: 1650 },
'route-profile.chunk.*.js.map': { size: 8609 },
'polyfills.js.map': { size: 31800 },
'polyfills.js.map': { size: 30155 },
'index.html': { size: 850 },
'style.css': { size: 1065 },
'style.css.map': { size: 2345 },
Expand Down