Browse Source

Add Autoprefixer support.

pull/464/head
XhmikosR 11 years ago committed by XhmikosR
parent
commit
943b0b18dc
  1. 44
      Gruntfile.js
  2. 1
      package.json
  3. 1
      sass/.csslintrc

44
Gruntfile.js

@ -112,6 +112,48 @@ module.exports = function (grunt) {
} }
}, },
autoprefixer: {
options: {
browsers: [
'Android 2.3',
'Android >= 4',
'Chrome >= 20',
'Firefox >= 24', // Firefox 24 is the latest ESR
'Explorer >= 9',
'iOS >= 6',
'Opera >= 12',
'Safari >= 6'
]
},
core: {
src: '<%= meta.distPath %>css/<%= pkg.name %>.css'
},
android_theme: {
options: {
browsers: [
'Android 2.3',
'Android >= 4',
'Chrome >= 20',
'Firefox >= 24', // Firefox 24 is the latest ESR
'Opera >= 12'
]
},
src: '<%= sass.android_theme.dest %>'
},
ios_theme: {
options: {
browsers: ['iOS >= 6']
},
src: '<%= sass.ios_theme.dest %>'
},
docs: {
options: {
browsers: ['last 2 versions', 'ie 9', 'android 2.3', 'android 4', 'opera 12']
},
src: '<%= sass.docs.dest %>'
}
},
cssmin: { cssmin: {
options: { options: {
keepSpecialComments: '*' // set to '*' because we already add the banner in sass keepSpecialComments: '*' // set to '*' because we already add the banner in sass
@ -248,7 +290,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt); require('time-grunt')(grunt);
// Default task(s). // Default task(s).
grunt.registerTask('dist-css', ['sass', 'csscomb', 'cssmin']); grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csscomb', 'cssmin']);
grunt.registerTask('dist-js', ['concat', 'uglify']); grunt.registerTask('dist-js', ['concat', 'uglify']);
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy', 'build-ratchicons-data']); grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy', 'build-ratchicons-data']);
grunt.registerTask('validate-html', ['jekyll', 'validation']); grunt.registerTask('validate-html', ['jekyll', 'validation']);

1
package.json

@ -27,6 +27,7 @@
}, },
"devDependencies": { "devDependencies": {
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-autoprefixer": "~2.2.0",
"grunt-contrib-clean": "~0.6.0", "grunt-contrib-clean": "~0.6.0",
"grunt-contrib-concat": "~0.5.0", "grunt-contrib-concat": "~0.5.0",
"grunt-contrib-copy": "~0.7.0", "grunt-contrib-copy": "~0.7.0",

1
sass/.csslintrc

@ -5,6 +5,7 @@
"compatible-vendor-prefixes": false, "compatible-vendor-prefixes": false,
"fallback-colors": false, "fallback-colors": false,
"font-sizes": false, "font-sizes": false,
"gradients": false,
"important": false, "important": false,
"known-properties": false, "known-properties": false,
"outline-none": false, "outline-none": false,

Loading…
Cancel
Save