aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-08 23:48:07 -0800
committerMark Otto <[email protected]>2013-12-08 23:48:07 -0800
commitea61a19a04e3bcd96f1dc0960375d926bb1dabb5 (patch)
tree4d3f573abfa96ed0465492f52d70d7e2b6e767a8 /Gruntfile.js
parent0016c17f9307bc71fc96d8d4680a9c861f137cae (diff)
parentfdc5d1dc34bf28e55c6359aeb098e608585ca6cb (diff)
downloadbootstrap-ea61a19a04e3bcd96f1dc0960375d926bb1dabb5.tar.xz
bootstrap-ea61a19a04e3bcd96f1dc0960375d926bb1dabb5.zip
Merge branch 'pr/11778' into drop_recess_for_less
Conflicts: Gruntfile.js dist/css/bootstrap-theme.min.css dist/css/bootstrap.min.css
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js45
1 files changed, 24 insertions, 21 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index f07703efe..35ad76394 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -110,43 +110,45 @@ module.exports = function (grunt) {
'dist/css/<%= pkg.name %>-theme.css': 'less/theme.less'
}
},
- minify: {
+ },
+
+ usebanner: {
+ dist: {
options: {
- compress: true,
- report: 'min'
+ position: 'top',
+ banner: '<%= banner %>'
},
files: {
- 'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
- 'dist/css/<%= pkg.name %>-theme.min.css': 'dist/css/<%= pkg.name %>-theme.css'
+ src: [
+ 'dist/css/<%= pkg.name %>.css',
+ 'dist/css/<%= pkg.name %>-theme.css',
+ ]
}
}
},
- csscomb: {
- sort: {
+ cssmin: {
+ compress: {
options: {
- sortOrder: '.csscomb.json'
+ keepSpecialComments: 1,
+ report: 'min',
+ selectorsMergeMode: 'ie8'
},
files: {
- 'dist/css/<%= pkg.name %>.css': ['dist/css/<%= pkg.name %>.css'],
- 'dist/css/<%= pkg.name %>-theme.css': ['dist/css/<%= pkg.name %>-theme.css'],
+ 'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
+ 'dist/css/<%= pkg.name %>-theme.min.css': 'dist/css/<%= pkg.name %>-theme.css'
}
}
},
- usebanner: {
- dist: {
+ csscomb: {
+ sort: {
options: {
- position: 'top',
- banner: '<%= banner %>'
+ sortOrder: '.csscomb.json'
},
files: {
- src: [
- 'dist/css/<%= pkg.name %>.css',
- 'dist/css/<%= pkg.name %>.min.css',
- 'dist/css/<%= pkg.name %>-theme.css',
- 'dist/css/<%= pkg.name %>-theme.min.css',
- ]
+ 'dist/css/<%= pkg.name %>.css': ['dist/css/<%= pkg.name %>.css'],
+ 'dist/css/<%= pkg.name %>-theme.css': ['dist/css/<%= pkg.name %>-theme.css'],
}
}
},
@@ -320,6 +322,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-qunit');
@@ -348,7 +351,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-js', ['concat', 'uglify']);
// CSS distribution task.
- grunt.registerTask('dist-css', ['less', 'csscomb', 'usebanner']);
+ grunt.registerTask('dist-css', ['less', 'cssmin', 'csscomb', 'usebanner']);
// Fonts distribution task.
grunt.registerTask('dist-fonts', ['copy']);