tooling(webpack): base paths of rootfolder (#6123)

This commit is contained in:
Even Stensberg
2023-01-17 17:05:34 +01:00
committed by GitHub
parent 4889284335
commit 9ae58f8441
3 changed files with 23 additions and 22 deletions

View File

@@ -5,11 +5,12 @@ This configuration should be used for development purposes. It contains full sou
devServer (which be invoked using by `npm start`), and a non-minified Vue.js distribution.
If OpenMCT is to be used for a production server, use webpack.prod.js instead.
*/
const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const path = require("path");
const webpack = require("webpack");
const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const projectRootDir = path.resolve(__dirname, "..");
module.exports = merge(common, {
mode: "development",
@@ -26,7 +27,7 @@ module.exports = merge(common, {
},
resolve: {
alias: {
vue: path.join(__dirname, "..", "node_modules/vue/dist/vue.js")
vue: path.join(projectRootDir, "node_modules/vue/dist/vue.js")
}
},
plugins: [