We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e42acb commit c10740dCopy full SHA for c10740d
packages/more/webpack.config.js
@@ -123,6 +123,8 @@ module.exports = {
123
124
output: {
125
path: isProd ? buildDir : undefined,
126
+ // small performance boost in development
127
+ pathinfo: isProd,
128
filename: isProd ? '[name].[contenthash:6].js' : '[name].js',
129
publicPath: '',
130
chunkFilename: isProd
@@ -141,7 +143,12 @@ module.exports = {
141
143
namedModules: true,
142
144
noEmitOnErrors: true,
145
runtimeChunk: true,
- splitChunks: {
146
+ // faster dev build
147
+ removeEmptyChunks: isProd,
148
149
+ removeAvailableModules: isProd,
150
+ // faster dev build if no splitChunks
151
+ splitChunks: isProd && {
152
chunks: 'all',
153
name: false,
154
},
0 commit comments