wisemapping-frontend/packages/editor/webpack.common.js

25 lines
544 B
JavaScript
Raw Permalink Normal View History

/** @type {import('webpack').Configuration} */
const { merge } = require('webpack-merge');
const common = require('../../webpack.common');
2022-01-25 19:10:40 +01:00
const path = require('path');
const prodConfig = {
2022-01-25 19:10:40 +01:00
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
2022-02-21 06:25:18 +01:00
publicPath: '',
2022-01-25 19:10:40 +01:00
library: {
type: 'umd',
2022-02-21 06:25:18 +01:00
},
},
stats: {
2022-07-13 03:58:11 +02:00
errorDetails: true,
2022-11-12 16:17:06 +01:00
}, entry: {
2022-07-13 03:58:11 +02:00
'editor.bundle': path.join(__dirname, 'src', 'index.tsx'),
2022-01-25 19:10:40 +01:00
},
mode: 'development',
target: 'web',
2022-02-21 06:25:18 +01:00
};
module.exports = merge(common, prodConfig);