From e308fe456b5d35b7b0ca7c81dfe214c7239f80e7 Mon Sep 17 00:00:00 2001 From: Ingvord Date: Tue, 21 May 2024 21:37:14 +0200 Subject: [PATCH] Include source maps into production --- Gruntfile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 545b9bb..3a44af2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,6 +22,9 @@ module.exports = function(grunt) { }, concat : { + options: { + sourceMap: true + }, prod : { files : { 'min/ispyb-client.js' : [ "js/ispyb-client/**/*js" ], @@ -64,7 +67,11 @@ module.exports = function(grunt) { }, uglify : { prod : { - options : { beautify:true }, + options : { + beautify:true, + sourceMap: true, + sourceMapIncludeSources: true + }, files : { 'min/exi.min.js' : ['min/exi.tools.js', 'min/ispyb-client.js', 'min/exi.js', 'min/exi.mx.js', 'min/exi.saxs.js', 'min/exi.em.js', @@ -84,7 +91,8 @@ module.exports = function(grunt) { prod : { options : { shorthandCompacting : true, - roundingPrecision : -1 + roundingPrecision : -1, + sourceMap: true }, files : { 'min/exi.min.css' : [