mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
25 lines
544 B
JavaScript
25 lines
544 B
JavaScript
/** @type {import('webpack').Configuration} */
|
|
const { merge } = require('webpack-merge');
|
|
const common = require('../../webpack.common');
|
|
const path = require('path');
|
|
|
|
const prodConfig = {
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
publicPath: '',
|
|
library: {
|
|
type: 'umd',
|
|
},
|
|
},
|
|
stats: {
|
|
errorDetails: true,
|
|
}, entry: {
|
|
'editor.bundle': path.join(__dirname, 'src', 'index.tsx'),
|
|
},
|
|
mode: 'development',
|
|
target: 'web',
|
|
};
|
|
|
|
module.exports = merge(common, prodConfig);
|