Add sourcemaps

This commit is contained in:
Phoenix Eliot 2016-09-16 18:31:00 -07:00
parent 667ea35d0c
commit 1ae6513b2d

View file

@ -16,10 +16,10 @@ module.exports = {
root: [path.resolve('./app'), path.resolve('./app/templates')], root: [path.resolve('./app'), path.resolve('./app/templates')],
extensions: ['', '.web.coffee', '.web.js', '.coffee', '.js', '.jade'] extensions: ['', '.web.coffee', '.web.js', '.coffee', '.js', '.jade']
}, },
devtool: 'inline-source-map',
plugins: [ plugins: [
new webpack.ContextReplacementPlugin(/./, function(context){ new webpack.ContextReplacementPlugin(/./, function(context){
if (context.resource === path.resolve('./app/views')) { if (context.resource === path.resolve('./app/views')) {
console.log(context.regExp);
context.regExp = /^.*Home.*$/i; context.regExp = /^.*Home.*$/i;
} }
console.log(arguments); console.log(arguments);