gulp-concat-css
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/gulp-concat-css package

3.1.0 • Public • Published

gulp-concat-css

Build Status NPM version Dependency Status Downloads

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 css
  • options: (since 2.1.0)
    • inlineImports: (default true) Inline any local import statement found
    • rebaseUrls: (default true) Adjust any relative URL to the location of the target file.
    • includePaths: (default []) Include additional paths when inlining imports
    • commonBase: (default to the base property of the first file) Common base path from wich resolving files and urls

License

MIT @ Mario Casciaro

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.014,531latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.014,531
3.0.032
2.3.04,056
2.2.0363
2.1.21
2.1.12
2.1.05
2.0.02
1.2.0157
1.1.15
1.1.02
1.0.010
0.2.01
0.1.46
0.1.32
0.1.12

Package Sidebar

Install

npm i gulp-concat-css

Weekly Downloads

19,177

Version

3.1.0

License

none

Unpacked Size

15.8 kB

Total Files

14

Last publish

Collaborators

  • mariocasciaro