Add context to webpack configs

Fix the issue with paths resolving incorrectly for the webpack config
when running the master server with the --dev option from the project
root folder through either npx clusteriomaster or node packages/master
This commit is contained in:
Hornwitser committed 2020-10-28 19:22:20 +01:00
1 parent 690e566556
commit 019ffc25f0
11 files changed
+7 -10

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ const { merge } = require("webpack-merge");
const common = require("@clusterio/web_ui/webpack.common");
module.exports = (env = {}) => merge(common(env), {
context: __dirname,
entry: "./web/index.jsx",
output: {
filename: "bundle.js",