Merge pull request #916 from roots/js-source-map
Make enabling a JS source map easy
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Add JS source map (disabled by default)
|
||||||
* Update to Bootstrap 3.0.2
|
* 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
|
### 6.5.1: November 5th, 2013
|
||||||
* Move clean URLs to a [plugin](https://github.com/roots/roots-rewrites)
|
* Move clean URLs to a [plugin](https://github.com/roots/roots-rewrites)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
compress: true,
|
compress: true,
|
||||||
// LESS source maps
|
// LESS source map
|
||||||
// To enable, set sourceMap to true and update sourceMapRootpath based on your install
|
// To enable, set sourceMap to true and update sourceMapRootpath based on your install
|
||||||
sourceMap: false,
|
sourceMap: false,
|
||||||
sourceMapFilename: 'assets/css/main.min.css.map',
|
sourceMapFilename: 'assets/css/main.min.css.map',
|
||||||
@@ -49,6 +49,11 @@ module.exports = function(grunt) {
|
|||||||
'assets/js/plugins/*.js',
|
'assets/js/plugins/*.js',
|
||||||
'assets/js/_*.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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user