Skip to content
Snippets Groups Projects
Commit be41298d authored by Jack Reed's avatar Jack Reed Committed by Mathias Maaß
Browse files

Limit chunking to development only, so that built umd package will continue to work as it has

parent 2f53d0f5
Branches
No related tags found
No related merge requests found
......@@ -53,7 +53,13 @@ const baseConfig = [
module.exports = (env, options) => {
const isProduction = options.mode === 'production';
return baseConfig.map((config) => {
config.devtool = !isProduction ? 'eval-source-map' : false; // eslint-disable-line no-param-reassign
if (isProduction) {
config.plugins.push(new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}));
} else {
config.devtool = 'eval-source-map'; // eslint-disable-line no-param-reassign
}
return config;
});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment