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