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

13 lines
344 B
JavaScript
Raw Normal View History

2021-07-16 16:41:58 +02:00
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
const pkg = require('./package.json');
2021-07-16 16:41:58 +02:00
/** @type {import('webpack').Configuration} */
const prodConfig = {
mode: 'production',
devtool: 'source-map',
externals: [...Object.keys(pkg.peerDependencies)],
2021-07-16 16:41:58 +02:00
};
module.exports = merge(common, prodConfig);