aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Dodd <[email protected]>2014-05-19 17:07:31 +1000
committerRobert Dodd <[email protected]>2014-05-19 17:07:31 +1000
commit8e354c4240c87ce129c7c5f06d525fe89798cae0 (patch)
treef03dd5fd020b9c3b871af1dacc902493d4cb7e2f
parent082bc20bb9ff1eb26e23ea8f2144f966fac20336 (diff)
downloadbootstrap-8e354c4240c87ce129c7c5f06d525fe89798cae0.tar.xz
bootstrap-8e354c4240c87ce129c7c5f06d525fe89798cae0.zip
Reassigned minification of CSS to cssmin task.
Reassigned minification of CSS files from the less task to the cssmin task
-rw-r--r--Gruntfile.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 2c33b474e..641fa2bad 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');