diff --git a/Gruntfile.js b/Gruntfile.js index 8630afa..dc0e2d5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -26,6 +26,14 @@ module.exports = function(grunt) { } }, + cssmin: { + target: { + files: { + 'select2-bootstrap.min.css': 'select2-bootstrap.css' + } + } + }, + jshint: { all: ['Gruntfile.js', '*.json'] }, @@ -76,6 +84,6 @@ module.exports = function(grunt) { }); // Default tasks. - grunt.registerTask('build', ['sass', 'copy', 'shell:jekyllBuild']); + grunt.registerTask('build', ['sass', 'cssmin', 'copy', 'shell:jekyllBuild']); grunt.registerTask('serve', ['shell:jekyllServe']); }; diff --git a/_jekyll/css/select2-bootstrap.css b/_jekyll/css/select2-bootstrap.css index 41ef5d7..fa9459d 100644 --- a/_jekyll/css/select2-bootstrap.css +++ b/_jekyll/css/select2-bootstrap.css @@ -1,9 +1,4 @@ -/** - * Select2 Bootstrap 3 CSS v1.4.4 - * Tested with Bootstrap v3.3.1 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, v3.5.2, master - * in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE11 - * MIT License - */ +/*! Select2 Bootstrap 3 CSS v1.4.4 | MIT License | github.com/t0m/select2-bootstrap-css */ /** * Reset Bootstrap 3 .form-control styles which - if applied to the * original -element the Select2-plugin may be run against - diff --git a/lib/select2-bootstrap.less b/lib/select2-bootstrap.less index ecff932..936b4f0 100644 --- a/lib/select2-bootstrap.less +++ b/lib/select2-bootstrap.less @@ -1,9 +1,4 @@ -/** - * Select2 Bootstrap 3 CSS v1.4.4 - * Tested with Bootstrap v3.3.1 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, v3.5.2, master - * in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE11 - * MIT License - */ +/*! Select2 Bootstrap 3 CSS v1.4.4 | MIT License | github.com/t0m/select2-bootstrap-css */ /** * Reset Bootstrap 3 .form-control styles which - if applied to the diff --git a/lib/select2-bootstrap.scss b/lib/select2-bootstrap.scss index 58dd487..a425bf9 100644 --- a/lib/select2-bootstrap.scss +++ b/lib/select2-bootstrap.scss @@ -1,9 +1,4 @@ -/** - * Select2 Bootstrap 3 CSS v1.4.4 - * Tested with Bootstrap v3.3.1 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, v3.5.2, master - * in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE11 - * MIT License - */ +/*! Select2 Bootstrap 3 CSS v1.4.4 | MIT License | github.com/t0m/select2-bootstrap-css */ /** * Reset Bootstrap 3 .form-control styles which - if applied to the diff --git a/package.json b/package.json index 9e2e212..710f131 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "grunt": "~0.4.1", "grunt-bump": "0.0.11", "grunt-contrib-copy": "^0.7.0", + "grunt-contrib-cssmin": "^0.11.0", "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-nodeunit": "~0.4.1", "grunt-contrib-sass": "~0.8.1", diff --git a/select2-bootstrap.css b/select2-bootstrap.css index 41ef5d7..fa9459d 100644 --- a/select2-bootstrap.css +++ b/select2-bootstrap.css @@ -1,9 +1,4 @@ -/** - * Select2 Bootstrap 3 CSS v1.4.4 - * Tested with Bootstrap v3.3.1 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, v3.5.2, master - * in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE11 - * MIT License - */ +/*! Select2 Bootstrap 3 CSS v1.4.4 | MIT License | github.com/t0m/select2-bootstrap-css */ /** * Reset Bootstrap 3 .form-control styles which - if applied to the * original