Add SourceMap in development mode
This commit is contained in:
7
webpack.config.base.js
Normal file
7
webpack.config.base.js
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
module.exports = {
|
||||
devtool: isProduction ? false : '#inline-source-map'
|
||||
};
|
Reference in New Issue
Block a user