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

23 lines
599 B

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