openmct/.webpack/webpack.prod.js

28 lines
674 B
JavaScript
Raw Normal View History

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