Fix dev server

This commit is contained in:
omuretsu 2023-01-06 18:16:17 -05:00
parent b4743a9841
commit 20f405a32c
2 changed files with 4 additions and 2 deletions

@ -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'", "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": "http-server -p 8000",
"start:dev": "webpack serve --progress --env devServer --mode development", "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": "webpack --mode production",
"build:dev": "webpack --mode development", "build:dev": "webpack --mode development",
"lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 src", "lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 src",

@ -32,6 +32,10 @@ module.exports = (env, argv) => {
publicPath: `/`, publicPath: `/`,
stats: statsConfig, stats: statsConfig,
}, },
static: {
directory: path.join(__dirname, "dist", "ext"),
publicPath: '/dist/ext',
},
}; };
// By default, the webpack-dev-server is not exposed outside of localhost. // By default, the webpack-dev-server is not exposed outside of localhost.