webpack: use webpack 4 default devtool for client bundle

This commit is contained in:
Pooya Parsa 2018-02-26 14:48:14 +03:30
parent 742ea42f97
commit 8992c1ee36

View File

@ -34,10 +34,6 @@ module.exports = function webpackClientConfig() {
config.entry.app = resolve(this.options.buildDir, 'client.js')
config.entry.vendor = this.vendor()
// Config devtool
config.devtool = this.options.dev ? 'cheap-source-map' : false
config.output.devtoolModuleFilenameTemplate = '[absolute-resource-path]'
// Env object defined in nuxt.config.js
let env = {}
each(this.options.env, (value, key) => {