Mixed prod for dev and vice-versa in webpack config, fixed
This commit is contained in:
parent
1008204090
commit
c8d08cb725
|
@ -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,
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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",
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue