Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Gulp plugin to process CSS within the <style> tags and inline style= attributes in your HTML using html-postcss.

License

Notifications You must be signed in to change notification settings

Raiyee/gulp-htmlpostcss

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-htmlpostcss

Gulp plugin to process CSS within the <style> tags and inline style= attributes in your HTML using html-postcss.

#Usage

// gulpfile.js

var gulp = require('gulp'),
    htmlPostcss = require('gulp-htmlpostcss'),
    autoprefixer = require('autoprefixer');

// if you just want to use postcss processors with default options
gulp.task('task1', function () {
    return gulp.src('src/**/*.html')
        .pipe(htmlPostcss(processors))
        .pipe(gulp.dest('dist'));
});

// if you want to use cheerioOpts or postcssOpts at the same time
gulp.task('task1', function () {
    return gulp.src('src/**/*.html')
        .pipe(htmlPostcss({
            plugins: processors,
            cheerio: cheerioOpts,
            postcss: postcssOpts
        }))
        .pipe(gulp.dest('dist'));
});

About

Gulp plugin to process CSS within the <style> tags and inline style= attributes in your HTML using html-postcss.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.