fix(admin-ui): modify webpack config to prevent throwing sourcemap errors (#5484)

This commit is contained in:
Kasper Fabricius Kristensen
2023-10-30 12:06:58 +01:00
committed by GitHub
parent 8f5b5b51a9
commit b69f182571
5 changed files with 20 additions and 26 deletions

View File

@@ -1,5 +1,6 @@
import { DuplicateReporterPlugin } from "duplicate-dependencies-webpack-plugin"
import path from "path"
import openBrowser from "react-dev-utils/openBrowser"
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer"
import { Configuration } from "webpack-dev-server"
import { getWebpackConfig } from "./src/node/webpack/get-webpack-config"
@@ -34,11 +35,19 @@ const getDevServerConfig = () => {
...{
devServer: {
port: 7001,
hot: true,
historyApiFallback: true,
client: {
progress: false,
},
static: {
directory: path.resolve(__dirname, "./ui/public"),
publicPath: "/",
},
open: false,
onListening: function () {
openBrowser(`http://localhost:7001`)
},
} as Configuration,
},
}