You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
hbyd_ueba_fe/extra-webpack.config.js

22 lines
586 B

const webpackMerge = require('webpack-merge');
const { name, environment } = require('./package');
module.exports = (angularWebpackConfig, options) => {
const singleSpaConfig = {
output: {
library: `${name}-[name]`,
libraryTarget: 'umd',
publicPath: process.env.NODE_ENV == 'prod' ? '/WebApi/notice/static/dist/' : 'http://localhost:4203/'
},
externals: {
'zone.js': 'Zone',
}
};
const mergedConfig = webpackMerge.smart(angularWebpackConfig, singleSpaConfig);
return mergedConfig;
};