fix(admin-ui): modify webpack config to prevent throwing sourcemap errors (#5484)
This commit is contained in:
committed by
GitHub
parent
8f5b5b51a9
commit
b69f182571
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user