0.1.5 • Published 8 years ago

gulp-inline-autoprefixer v0.1.5

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
8 years ago

gulp-inline-autoprefixer

Gulp plugin to Autoprefix all CSS inside an html page - CSS inside style tags and inside style attributes. Uses inline-autoprefixer under the hood.

NPM version

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" ) );
} );

options

  1. autoprefixerOpts options for autoprefix
  2. cheerioOpts options for cheerio
  3. postcssOpts options for postcss

Installation

npm install gulp-inline-autoprefixer --save-dev

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request