]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Reassigned minification of CSS to cssmin task. 13624/head
authorRobert Dodd <bobrdodd@gmail.com>
Mon, 19 May 2014 07:07:31 +0000 (17:07 +1000)
committerRobert Dodd <bobrdodd@gmail.com>
Mon, 19 May 2014 07:07:31 +0000 (17:07 +1000)
Reassigned minification of CSS files from the less task to the cssmin
task

Gruntfile.js

index 2c33b474ec5b8345db75433c1e0ce28a79161dc8..641fa2badba578ca8ff32a3bdb99da9d7a0ff5b2 100644 (file)
@@ -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');