diff options
| author | Mark Otto <[email protected]> | 2013-12-09 00:12:11 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-09 00:12:11 -0800 |
| commit | d466d527a496e14ef1c8fdbeb7a221bd3a239f09 (patch) | |
| tree | 791b3665164af279e45ff2804a14990ffff4bb6d /Gruntfile.js | |
| parent | b9b17bc72b292029171fd3912c88cdc41fc5aea0 (diff) | |
| download | bootstrap-d466d527a496e14ef1c8fdbeb7a221bd3a239f09.tar.xz bootstrap-d466d527a496e14ef1c8fdbeb7a221bd3a239f09.zip | |
Undo merge of #11778 and use cleancss min option
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 36112c840..73023939e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -117,6 +117,16 @@ module.exports = function (grunt) { 'dist/css/<%= pkg.name %>-theme.css': 'less/theme.less' } }, + minify: { + options: { + cleancss: true, + report: 'min' + }, + 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' + } + } }, usebanner: { @@ -128,26 +138,14 @@ module.exports = function (grunt) { 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', ] } } }, - cssmin: { - compress: { - options: { - keepSpecialComments: 1, - report: 'min', - selectorsMergeMode: 'ie8' - }, - 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' - } - } - }, - csscomb: { sort: { options: { @@ -330,7 +328,6 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-csslint'); - grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-qunit'); @@ -359,7 +356,7 @@ module.exports = function (grunt) { grunt.registerTask('dist-js', ['concat', 'uglify']); // CSS distribution task. - grunt.registerTask('dist-css', ['less', 'cssmin', 'csscomb', 'usebanner']); + grunt.registerTask('dist-css', ['less', 'csscomb', 'usebanner']); // Fonts distribution task. grunt.registerTask('dist-fonts', ['copy']); |
