gulp-extract-css-urls
v0.4.0
Published
Imports to the pipeline all the CSS assets included with url()
Downloads
101
Maintainers
Readme
Gulp Extract CSS URLs
Imports to the pipeline all the CSS assets included with url().
Usage
npm install gulp-extract-css-urls --save-dev
import gulp from 'gulp';
import extractCssUrls from 'gulp-extract-css-urls';
// This will copy main.css along with its resources loaded with url().
gulp.task('default', () => {
return gulp.src('main.css', { cwd: 'resources/assets/css/' })
.pipe(extractCssUrls())
.pipe(gulp.dest('public/assets/'));
});