From: Robert Dodd Date: Mon, 19 May 2014 07:07:31 +0000 (+1000) Subject: Reassigned minification of CSS to cssmin task. X-Git-Tag: v3.2.0~144^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e354c4240c87ce129c7c5f06d525fe89798cae0;p=thirdparty%2Fbootstrap.git Reassigned minification of CSS to cssmin task. Reassigned minification of CSS files from the less task to the cssmin task --- diff --git a/Gruntfile.js b/Gruntfile.js index 2c33b474ec..641fa2badb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -175,15 +175,6 @@ module.exports = function (grunt) { files: { 'dist/css/<%= pkg.name %>-theme.css': 'less/theme.less' } - }, - minify: { - options: { - cleancss: true - }, - 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' - } } }, @@ -239,6 +230,12 @@ module.exports = function (grunt) { compatibility: 'ie8', keepSpecialComments: '*' }, + core: { + 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', + } + }, docs: { src: [ 'docs/assets/css/_src/docs.css', @@ -436,7 +433,7 @@ module.exports = function (grunt) { // CSS distribution task. grunt.registerTask('less-compile', ['less:compileCore', 'less:compileTheme']); - grunt.registerTask('dist-css', ['less-compile', 'autoprefixer', 'usebanner', 'csscomb', 'less:minify', 'cssmin']); + grunt.registerTask('dist-css', ['less-compile', 'autoprefixer', 'usebanner', 'csscomb', 'cssmin']); // Docs distribution task. grunt.registerTask('dist-docs', 'copy:docs');