tooling(webpack): base paths of rootfolder (#6123)
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user