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 { merge } = require('webpack-merge');
|
||||||
const common = require('./webpack.common.js');
|
const common = require('./webpack.common.js');
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: "production",
|
mode: "development",
|
||||||
devtool: "source-map",
|
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 { merge } = require('webpack-merge');
|
||||||
const common = require('./webpack.common.js');
|
const common = require('./webpack.common.js');
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: "development",
|
mode: "production",
|
||||||
devtool: "inline-source-map",
|
devtool: "source-map",
|
||||||
devSources: {
|
|
||||||
static: {
|
|
||||||
directory: path.join(__dirname, "src"),
|
|
||||||
},
|
|
||||||
compress: true,
|
|
||||||
port: 9001,
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue