gulp-concat-css
Concatenate css files, rebasing urls and inlining @import
Last updated 2 years ago by mariocasciaro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-concat-css 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.1.0                                ...           latest (2 years ago)

16 Versions

  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 16
This Week 197
This Month 150
Last Day 18
Last Week 221
Last Month 1,032
Dependencies (8)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |