build: remove devServer from misc config

This commit is contained in:
Ilya Kreymer
2024-06-20 15:47:59 -07:00
parent 4d6239c87e
commit 83c071be06
+1 -11
View File
@@ -189,8 +189,6 @@ const browserConfig = (/*env, argv*/) => {
};
const miscConfig = (/*env, argv*/) => {
const isDevServer = process.env.WEBPACK_SERVE;
/** @type {import('webpack').Configuration['entry']} */
const entry = {
misc: "./src/misc.ts",
@@ -201,7 +199,7 @@ const miscConfig = (/*env, argv*/) => {
target: "web",
mode: "production",
cache: {
type: isDevServer ? "memory" : "filesystem",
type: "filesystem"
},
resolve: {
fallback: { crypto: false },
@@ -217,14 +215,6 @@ const miscConfig = (/*env, argv*/) => {
publicPath: "/",
},
devServer: {
compress: true,
port: 9990,
open: false,
static: __dirname,
//publicPath: "/"
},
plugins: [
new webpack.NormalModuleReplacementPlugin(/^node:*/, (resource) => {
switch (resource.request) {