gulp-true-rebase
v1.0.3
Published
Rebase CSS assets urls to relative paths and copy assets
Downloads
250
Maintainers
Readme
gulp-true-rebase
A gulp plugin that rebase paths in CSS and transfer fonts and images from node_modules and root directories to public assets directories.
Install
$ npm install gulp-true-rebase
Usage
const gulp = require('gulp');
const rebase = require('gulp-true-rebase');
gulp.task('default', () =>
gulp.src('src/*.css')
.pipe(rebase({
output_css: 'public/assets/css',
output_assets: 'public/assets'
}))
.pipe(gulp.dest('public/assets/css'))
);
Options
output_css
- Directory where css will be saved.output_assets
- Parent assets directory (will contain img and fonts directories).