gulp-css-processor
v1.1.0
Published
Rewrite url references in css files and copy css assets
Downloads
2
Maintainers
Readme
gulp-css-processor
A gulp plugin that allows rewriting url references in css files.
Install
$ npm install --save-dev gulp-css-processor
Usage
const gulp = require('gulp');
const processor = require('gulp-css-processor');
gulp.task('default', () =>
gulp.src('src/*.css')
.pipe(processor())
.pipe(gulp.dest('dist'))
);
Options
dest
- The target directory for the processed css file. Paths are rewritten relatively to that directory. Default 'dist'.assets
- The target directory for CSS assets. Default 'assets'.suffix
- The suffix of hash. Default 'v'.prefix
- The prefix of url in css files. Default ''.