Add SourceMap in development mode

This commit is contained in:
Yuya Ochiai
2016-10-13 00:08:04 +09:00
parent 0fb3b5e378
commit dace9c2032
4 changed files with 25 additions and 6 deletions

7
webpack.config.base.js Normal file
View File

@@ -0,0 +1,7 @@
'use strict';
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
devtool: isProduction ? false : '#inline-source-map'
};