Skip to content

Commit

Permalink
build: remove devServer from misc config
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Jun 20, 2024
1 parent 4d6239c commit 83c071b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -201,7 +199,7 @@ const miscConfig = (/*env, argv*/) => {
target: "web",
mode: "production",
cache: {
type: isDevServer ? "memory" : "filesystem",
type: "filesystem"
},
resolve: {
fallback: { crypto: false },
Expand All @@ -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) {
Expand Down

0 comments on commit 83c071b

Please sign in to comment.