From fdf03ac83af1d4128f59ef5ae40fc51f70969780 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 1 Oct 2016 12:32:40 +0800 Subject: [PATCH] source maps! (I think) --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index f94f904a..31adaaa1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,7 @@ const config = module.exports = { test: /\.(js|jsx)?$/, exclude: /node_modules/, loaders: [ - "babel-loader?cacheDirectory" + "babel-loader?cacheDirectory&retainLines=true" ] } ] @@ -36,6 +36,7 @@ const config = module.exports = { }, output: { path: './app/assets/javascripts/webpacked', - filename: '[name].js' + filename: '[name].js', + devtoolModuleFilenameTemplate: '[absolute-resource-path]' } }