[Build] webpack5 upgrade (#4242)

This commit is contained in:
Nikhil
2021-12-29 16:18:48 -08:00
committed by GitHub
parent 4775c88909
commit 464bb3b885
21 changed files with 155 additions and 88 deletions

20
webpack.prod.js Normal file
View File

@ -0,0 +1,20 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
const path = require('path');
const webpack = require('webpack');
module.exports = merge(common, {
mode: 'production',
resolve: {
alias: {
"vue": path.join(__dirname, "node_modules/vue/dist/vue.min.js")
}
},
plugins: [
new webpack.DefinePlugin({
__OPENMCT_ROOT_RELATIVE__: '""'
})
],
devtool: 'source-map'
});