Skip to content

Instantly share code, notes, and snippets.

@Huskie
Created March 25, 2014 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Huskie/9761953 to your computer and use it in GitHub Desktop.
Save Huskie/9761953 to your computer and use it in GitHub Desktop.
Grunt Autoprefixer plugin usage syntax
/*
Autoprefixer
https://github.com/nDmitry/grunt-autoprefixer
Adds vendor prefixes automatically
https://github.com/nDmitry/grunt-autoprefixer
*/
autoprefixer: {
options: {
browsers: [
'last 2 version',
'safari 6',
'ie 8',
'opera 12.1',
'ios 6',
'android 4'
]
},
dev: {
files: {
'<%= project.src %>/css/style.min.css': ['<%= project.src %>/css/style.unprefixed.css'],
'<%= project.src %>/css/old-ie.min.css': ['<%= project.src %>/css/old-ie.unprefixed.css']
}
},
dist: {
files: {
'<%= project.src %>/css/style.prefixed.css': ['<%= project.src %>/css/style.unprefixed.css'],
'<%= project.src %>/css/old-ie.prefixed.css': ['<%= project.src %>/css/old-ie.unprefixed.css']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment