2022-09-30 15:17:02 +00:00
|
|
|
/* global __dirname module */
|
|
|
|
|
|
|
|
/*
|
|
|
|
This configuration should be used for production installs.
|
|
|
|
It is the default webpack configuration.
|
|
|
|
*/
|
2023-05-18 21:54:46 +00:00
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
const { merge } = require('webpack-merge');
|
2023-01-17 16:05:34 +00:00
|
|
|
|
2023-05-18 21:54:46 +00:00
|
|
|
const common = require('./webpack.common');
|
|
|
|
const projectRootDir = path.resolve(__dirname, '..');
|
2021-12-30 00:18:48 +00:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2023-05-18 21:54:46 +00:00
|
|
|
mode: 'production',
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
vue: path.join(projectRootDir, 'node_modules/vue/dist/vue.min.js')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
__OPENMCT_ROOT_RELATIVE__: '""'
|
|
|
|
})
|
|
|
|
],
|
|
|
|
devtool: 'source-map'
|
2021-12-30 00:18:48 +00:00
|
|
|
});
|