gulp-steel-css-fix

0.0.4 • Public • Published

#gulp-steel-css-fix

Use to fix css rules

###Usage

use glob pattern to filter your file path;

the filter could also be Array or String, like:

{filter:["pages/*.*"]} 
{filter:"lib/*.*"}

In your steel-gulpfile, you can use in this way:

var gscf = require('gulp-steel-css-fix');

gscf({ 
    prefix: true,//bool
    filter:["lib/*.*","pages/*.*"]//Array or String 
})

###Example If your file path is "src/css/pages/pageA.css", the filter(sub-path) pattern should be "pages/.", like:

function testCss(){
 	gulp.src(['src/css/**/*.*'])
        .pipe($.steelCssfix({
             prefix: true, 
             filter:["pages/pointsmall/*.*"] 
        }))
	.pipe(gulp.dest(front_base + '/css/'));
}

in the function testCss, the whole file path is "src/css/pages/pointsmall/."

Readme

Keywords

Package Sidebar

Install

npm i gulp-steel-css-fix

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • lonefy