mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
Fix dev server
This commit is contained in:
parent
b4743a9841
commit
20f405a32c
@ -111,8 +111,6 @@
|
||||
"format:report-diff": "bash -c 'if [[ $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | wc -c) -ne 0 ]]; then prettier -c $(git diff --name-only --diff-filter=ACMRTUXB origin/dev | grep -E \"(.js$|.jsx$|.ts$|.tsx$)\" | xargs); fi'",
|
||||
"start": "http-server -p 8000",
|
||||
"start:dev": "webpack serve --progress --env devServer --mode development",
|
||||
"start:dev-fast": "webpack serve --progress --env devServer --mode development --fast true",
|
||||
"start:container": "webpack serve --progress --env devServer --mode development --env runInContainer",
|
||||
"build": "webpack --mode production",
|
||||
"build:dev": "webpack --mode development",
|
||||
"lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 src",
|
||||
|
@ -32,6 +32,10 @@ module.exports = (env, argv) => {
|
||||
publicPath: `/`,
|
||||
stats: statsConfig,
|
||||
},
|
||||
static: {
|
||||
directory: path.join(__dirname, "dist", "ext"),
|
||||
publicPath: '/dist/ext',
|
||||
},
|
||||
};
|
||||
|
||||
// By default, the webpack-dev-server is not exposed outside of localhost.
|
||||
|
Loading…
Reference in New Issue
Block a user