Cheap source-maps for development

This commit is contained in:
Jaco Greeff 2017-08-04 13:26:56 +02:00
parent 0892bc90ed
commit 2df7a5fe51
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@ module.exports = {
cache: !isProd,
devtool: isProd
? '#source-map'
: '#cheap-eval',
: '#eval',
context: path.join(__dirname, '../src'),
entry,
output: {

View File

@ -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'],