Cheap source-maps for development
This commit is contained in:
parent
0892bc90ed
commit
2df7a5fe51
@ -53,7 +53,7 @@ module.exports = {
|
||||
cache: !isProd,
|
||||
devtool: isProd
|
||||
? '#source-map'
|
||||
: '#cheap-eval',
|
||||
: '#eval',
|
||||
context: path.join(__dirname, '../src'),
|
||||
entry,
|
||||
output: {
|
||||
|
@ -22,10 +22,14 @@ const rulesEs6 = require('./rules/es6');
|
||||
const rulesParity = require('./rules/parity');
|
||||
const Shared = require('./shared');
|
||||
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
const DEST = process.env.BUILD_DEST || '.build';
|
||||
|
||||
module.exports = {
|
||||
context: path.join(__dirname, '../src'),
|
||||
devtool: isProd
|
||||
? '#source-map'
|
||||
: '#eval',
|
||||
entry: {
|
||||
inject: ['./inject.js'],
|
||||
parity: ['./inject.js'],
|
||||
|
Loading…
Reference in New Issue
Block a user