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

14 lines
312 B
JavaScript

const { merge } = require('webpack-merge');
const common = require('./webpack.common');
const pkg = require('./package.json');
const prodConfig = {
optimization: {
usedExports: true,
minimize: true,
},
externals: [...Object.keys(pkg.dependencies)],
};
module.exports = merge(common, prodConfig);