gulp-css-preprocessor

Less/Scss/Sass/Stylus plugin for gulp based on file extensions

Usage no npm install needed!

<script type="module">
  import gulpCssPreprocessor from 'https://cdn.skypack.dev/gulp-css-preprocessor';
</script>

README

gulp-css-preprocessor NPM version

Less/Scss/Sass/Stylus plugin for gulp. It uses a suitable preprocessor for files based on their extensions

Install with npm

npm install gulp-css-preprocessor

Usage

gulp.src('styles/**/*')
    .pipe(gulpCssPreprocessor())
    .pipe(gulpConcatCss('style.css'))
    .pipe(gulp.dest('compiled/styles'));

API

gulpCssPreprocessor(params)

params

Object with the following parameters

less

Type: Object

Params for process .less files by less-preprocessor

scss

Type: Object

Params for process .scss files by scss-preprocessor

sass

Type: Object

Params for process .sass files by scss-preprocessor

Note: .sass process by scss-preprocessor with option indentedSyntax: true

stylus

Type: Object

Params for process .styl files by stylus-preprocessor

License

� Oleg Istomin 2015. Released under the MIT license