From eff1efd3d653c2b1fc05b89b0a8aaaeb6b05457b Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 5 Feb 2016 12:37:59 -0800 Subject: [PATCH] Enabling sourcemaps for minified JS --- themes/grav/gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/grav/gulpfile.js b/themes/grav/gulpfile.js index a9d90a8b..6e7d7d8b 100644 --- a/themes/grav/gulpfile.js +++ b/themes/grav/gulpfile.js @@ -28,12 +28,13 @@ var plugins = { }), prod: base.mergeDeep({ + devtool: 'source-map', plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' } }), new webpack.optimize.UglifyJsPlugin({ - sourceMap: false, + sourceMap: true, compress: { warnings: false }