From 12ff6bd04e8aeefbce8fae2513ced084ec5f53b6 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 7 Nov 2013 19:26:04 -0600 Subject: [PATCH] Make enabling a JS source map easy --- CHANGELOG.md | 3 ++- Gruntfile.js | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4485dcb..82770c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### HEAD +* Add JS source map (disabled by default) * Update to Bootstrap 3.0.2 -* Replace `grunt-recess` with `grunt-contrib-less`, add LESS source maps support +* Replace `grunt-recess` with `grunt-contrib-less`, add LESS source map support ### 6.5.1: November 5th, 2013 * Move clean URLs to a [plugin](https://github.com/roots/roots-rewrites) diff --git a/Gruntfile.js b/Gruntfile.js index 3d8557b..abc27da 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,7 +22,7 @@ module.exports = function(grunt) { }, options: { compress: true, - // LESS source maps + // LESS source map // To enable, set sourceMap to true and update sourceMapRootpath based on your install sourceMap: false, sourceMapFilename: 'assets/css/main.min.css.map', @@ -49,6 +49,11 @@ module.exports = function(grunt) { 'assets/js/plugins/*.js', 'assets/js/_*.js' ] + }, + options: { + // JS source map: to enable, uncomment the lines below and update sourceMappingURL based on your install + // sourceMap: 'assets/js/scripts.min.js.map', + // sourceMappingURL: '/app/themes/roots/assets/js/scripts.min.js.map' } } },