Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-concat-css with all npm packages installed. Try it out:

var gulpConcatCss = require("gulp-concat-css")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-concat-css v3.1.0

Concatenate css files, rebasing urls and inlining @import


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 with npm.

npm install --save-dev gulp-concat-css


var gulp = require('gulp');
var concatCss = require('gulp-concat-css');

gulp.task('default', function () {
  return gulp.src('assets/**/*.css')

TIP: for a proper import inlining and url rebase, make sure you set the proper base for the input files.


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


MIT @ Mario Casciaro

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free