enable source maps
This commit is contained in:
parent
ea18479822
commit
6ae391265e
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
const path = require('path')
|
||||
const webpack = require('webpack')
|
||||
|
||||
const NODE_ENV = process.env.NODE_ENV || 'development'
|
||||
|
@ -15,9 +14,12 @@ if (NODE_ENV === 'production') {
|
|||
}))
|
||||
}
|
||||
|
||||
const devtool = NODE_ENV === 'production' ? undefined : 'cheap-module-eval-source-map'
|
||||
|
||||
const config = module.exports = {
|
||||
context: __dirname,
|
||||
plugins,
|
||||
devtool,
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue