Gulp plugin to Autoprefix all CSS inside an html page - CSS inside style tags and inside style attributes. Uses inline-autoprefixer under the hood.
var gulp = require( "gulp" );
var htmlInlineAutoprefixer = require( "gulp-inline-autoprefixer" );
gulp.task( "html-autoprefix", function( ) {
return gulp.src( "./path/to/index-or-other.html" )
.pipe( htmlInlineAutoprefixer({'browsers':['ios 7', 'Android 4.3']},{},{}) )
.pipe( gulp.dest( "dist" ) );
} );
- autoprefixerOpts options for autoprefix
- cheerioOpts options for cheerio
- postcssOpts options for postcss
npm install gulp-inline-autoprefixer --save-dev
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request