wisemapping-frontend/packages/core-js/webpack.prod.js

21 lines
358 B
JavaScript
Raw Permalink Normal View History

const { merge } = require('webpack-merge');
const common = require('./webpack.common');
2021-07-16 16:41:58 +02:00
const prodConfig = {
2022-07-13 03:58:11 +02:00
mode: 'production',
devtool: 'source-map',
2023-02-10 03:51:52 +01:00
output: {
library: {
type: 'umd',
},
},
2022-07-13 03:58:11 +02:00
optimization: {
splitChunks: {
chunks: 'all',
2022-11-03 02:17:00 +01:00
usedExports: true,
2021-07-16 16:41:58 +02:00
},
2022-07-13 03:58:11 +02:00
},
2021-07-16 16:41:58 +02:00
};
module.exports = merge(common, prodConfig);