gulp-concat-css

WebJar for gulp-concat-css

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gulp-concat-css
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

gulp-concat-css
WebJar for gulp-concat-css
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mariocasciaro/gulp-concat-css

Download gulp-concat-css

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gulp-concat-css/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gulp-concat-css</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-concat-css/
implementation 'org.webjars.npm:gulp-concat-css:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-concat-css/
implementation ("org.webjars.npm:gulp-concat-css:3.1.0")
'org.webjars.npm:gulp-concat-css:jar:3.1.0'
<dependency org="org.webjars.npm" name="gulp-concat-css" rev="3.1.0">
  <artifact name="gulp-concat-css" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gulp-concat-css', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "gulp-concat-css" % "3.1.0"
[org.webjars.npm/gulp-concat-css "3.1.0"]

Dependencies

compile (8)

Group / Artifact Type Version
org.webjars.npm » rework jar [1.0.0,1.1)
org.webjars.npm : lodash.defaults jar [3.0.0,4)
org.webjars.npm : vinyl jar [2.1.0,3)
org.webjars.npm : plugin-error jar [0.1.2,0.2)
org.webjars.npm : through2 jar [1.1.1,1.2)
org.webjars.npm : parse-import jar [2.0.0,3)
org.webjars.npm : rework-plugin-url jar [1.0.1,2)
org.webjars.npm : rework-import jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

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 which files and urls resolve

License

MIT @ Mario Casciaro

Versions

Version
3.1.0
2.3.0