show extend option in example

This commit is contained in:
Sébastien Chopin 2016-12-27 16:30:33 +01:00
parent b2cba244b1
commit 3f9aa0f345

View File

@ -16,6 +16,11 @@ module.exports = {
name: 'img/[name].[ext]?[hash]' name: 'img/[name].[ext]?[hash]'
} }
} }
] ],
extend (config, { dev }) {
if (dev) {
config.devtool = (dev ? 'eval-source-map' : false)
}
}
} }
} }