From 1ae6513b2dd8d5a87cb3902c94c1ee291f8434d7 Mon Sep 17 00:00:00 2001 From: Phoenix Eliot Date: Fri, 16 Sep 2016 18:31:00 -0700 Subject: [PATCH] Add sourcemaps --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index d087fb536..2728099a6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,10 +16,10 @@ module.exports = { root: [path.resolve('./app'), path.resolve('./app/templates')], extensions: ['', '.web.coffee', '.web.js', '.coffee', '.js', '.jade'] }, + devtool: 'inline-source-map', plugins: [ new webpack.ContextReplacementPlugin(/./, function(context){ if (context.resource === path.resolve('./app/views')) { - console.log(context.regExp); context.regExp = /^.*Home.*$/i; } console.log(arguments);