Package Exports
- gulp-concat-css
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-concat-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-concat-css
Concatenates css files, bubbling up @import statements (as per the standard), and optionally rebasing urls and inlining local @import statements.
Install
Install with npm.
npm install --save-dev gulp-concat-css
Examples
var gulp = require('gulp');
var concatCss = require('gulp-concat-css');
gulp.task('default', function () {
return gulp.src('assets/**/*.css')
.pipe(concatCss("styles/bundle.css"))
.pipe(gulp.dest('out/'));
});
TIP: for a proper import inlining and url rebase, make sure you set the proper base
for the input files.
API
concatCss(targetFile, options)
targetFile
: The relative path of the generated file containing the concatenated cssoptions
: (since 2.1.0)inlineImports
: (defaulttrue
) Inline any local import statement foundrebaseUrls
: (defaulttrue
) Adjust any relative URL to the location of the target file.includePaths
: (default[]
) Include additional paths when inlining imports
License
MIT @ Mario Casciaro