Mixed prod for dev and vice-versa in webpack config, fixed

This commit is contained in:
NetMan 2024-02-03 20:03:56 +01:00
parent 1008204090
commit c8d08cb725
2 changed files with 12 additions and 12 deletions

View File

@ -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,
}
})

View File

@ -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",
})