wisemapping-frontend/packages/mindplot/webpack.common.js
2023-02-10 02:51:52 +00:00

20 lines
425 B
JavaScript

const path = require('path');
const { merge } = require('webpack-merge');
const common = require('../../webpack.common');
const prodConfig = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: {
type: 'umd',
},
},
entry: {
mindplot: './src/index.ts',
loader: './src/indexLoader.ts',
},
mode: 'production',
};
module.exports = merge(common, prodConfig);