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

13 lines
344 B
JavaScript

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