mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
25 lines
528 B
JavaScript
25 lines
528 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',
|
|
resolve: {
|
|
alias: {
|
|
'@libraries': path.resolve(__dirname, '../../libraries/'),
|
|
},
|
|
},
|
|
};
|
|
module.exports = merge(common, prodConfig);
|