From 83c071be068d0f0c76fb02b70da4a197c9a43e00 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 20 Jun 2024 15:47:59 -0700 Subject: [PATCH] build: remove devServer from misc config --- webpack.config.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 46e8501..54a3943 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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) {