From c8d08cb7253e1d8b8eb4e24ff6c1125e4cd18b5a Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Sat, 3 Feb 2024 20:03:56 +0100 Subject: [PATCH] Mixed prod for dev and vice-versa in webpack config, fixed --- webpack.dev.js | 12 ++++++++++-- webpack.prod.js | 12 ++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/webpack.dev.js b/webpack.dev.js index 7ba9280..0c52f4e 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -1,7 +1,15 @@ +const path = require('path'); const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { - mode: "production", - devtool: "source-map", + mode: "development", + devtool: "inline-source-map", + devSources: { + static: { + directory: path.join(__dirname, "src"), + }, + compress: true, + port: 9001, + } }) diff --git a/webpack.prod.js b/webpack.prod.js index 0c52f4e..7ba9280 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,15 +1,7 @@ -const path = require('path'); const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { - mode: "development", - devtool: "inline-source-map", - devSources: { - static: { - directory: path.join(__dirname, "src"), - }, - compress: true, - port: 9001, - } + mode: "production", + devtool: "source-map", })