From d721cbe5947c8bc75b2e4b0e9602e0e3d45dbbcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 30 Dec 2013 15:22:34 +0100 Subject: [PATCH 1/1] build: generate js source map --- Gruntfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index ca08c79..5427659 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,7 +17,13 @@ module.exports = function(grunt) { mainConfigFile: 'src/editor/entrypoint.js', out: build_output_dir + '/rng.js', name: 'entrypoint', - include: ['libs/require'] + include: ['libs/require'], + generateSourceMaps: true, + + // The following two settings are required for source maps to work, + // see: http://requirejs.org/docs/optimization.html#sourcemaps + preserveLicenseComments: false, + optimize: 'uglify2' } } }, -- 2.20.1