aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-18 12:57:38 -0800
committerMark Otto <[email protected]>2013-12-18 12:57:38 -0800
commitee709db67952c53b417a172534f24034eb2a92c8 (patch)
treeb20dafc484b4e325c8c18dd9f42a4cd5eb33a153 /Gruntfile.js
parentc4b0684e65d035c66df09bc16a9f2df1a4a6a28b (diff)
parentc262e5b47c4136dd1a1e7974472aaae6852bcfdc (diff)
downloadbootstrap-ee709db67952c53b417a172534f24034eb2a92c8.tar.xz
bootstrap-ee709db67952c53b417a172534f24034eb2a92c8.zip
Merge pull request #11804 from twbs/css-source-maps
enable CSS source maps in grunt-contrib-less
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js21
1 files changed, 18 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 5ba8abbfb..ab4b56cd2 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -113,12 +113,27 @@ module.exports = function (grunt) {
},
less: {
- compile: {
+ compileCore: {
options: {
- strictMath: true
+ strictMath: true,
+ sourceMap: true,
+ outputSourceFiles: true,
+ sourceMapURL: '<%= pkg.name %>.css.map',
+ sourceMapFilename: 'dist/css/<%= pkg.name %>.css.map'
+ },
+ files: {
+ 'dist/css/<%= pkg.name %>.css': 'less/bootstrap.less'
+ }
+ },
+ compileTheme: {
+ options: {
+ strictMath: true,
+ sourceMap: true,
+ outputSourceFiles: true,
+ sourceMapURL: '<%= pkg.name %>-theme.css.map',
+ sourceMapFilename: 'dist/css/<%= pkg.name %>-theme.css.map'
},
files: {
- 'dist/css/<%= pkg.name %>.css': 'less/bootstrap.less',
'dist/css/<%= pkg.name %>-theme.css': 'less/theme.less'
}
},