tooling(webpack): move webpack to its own folder (#6076)

This commit is contained in:
Even Stensberg
2023-01-12 20:46:35 +01:00
committed by GitHub
parent 905373f294
commit cdb202d8ba
7 changed files with 231 additions and 210 deletions

26
.webpack/webpack.prod.js Normal file
View File

@ -0,0 +1,26 @@
/* global __dirname module */
/*
This configuration should be used for production installs.
It is the default webpack configuration.
*/
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"
});