Fixed webpack config
This commit is contained in:
parent
4e78dc09d4
commit
90799bd1f9
@ -5,7 +5,7 @@ const NodemonPlugin = require('nodemon-webpack-plugin')
|
|||||||
module.exports = env => {
|
module.exports = env => {
|
||||||
const isProduction = !!env.production
|
const isProduction = !!env.production
|
||||||
const generateSourceMap = !!env.sourcemap
|
const generateSourceMap = !!env.sourcemap
|
||||||
let devtool = null
|
let devtool = false
|
||||||
if (!isProduction) {
|
if (!isProduction) {
|
||||||
devtool = generateSourceMap ? 'source-map' : 'eval'
|
devtool = generateSourceMap ? 'source-map' : 'eval'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user