An open API service indexing awesome lists of open source software.

https://github.com/terrierscript/gulp-cssjoin

[DEPRECATED] Use postcss-import https://github.com/postcss/postcss-import
https://github.com/terrierscript/gulp-cssjoin

Last synced: 5 months ago
JSON representation

[DEPRECATED] Use postcss-import https://github.com/postcss/postcss-import

Awesome Lists containing this project

README

          

# gulp-cssjoin

> Join css that @import syntax loaded file for gulp.
> more info [cssjoin](https://github.com/suisho/cssjoin)

## Usage

```
npm install gulp-cssjoin --save
```

### Simple Usage

```js
var gulp = require('gulp');
var cssjoin = require('gulp-cssjoin');
gulp.task('cssjoin', function(){
// default usage
gulp.src("./some/css_file.css")
.pipe(cssjoin())
.pipe(gulp.dest("./output/css"))

// with path option
gulp.src(src)
.pipe(
cssjoin({
paths : [
"./htdocs",
]
})
)
.pipe(gulp.dest("./output/css"))

})
```

### With less output
- sample for resolve @import after compile less

```js
gulp.task('css', function(){
gulp.src('./less/*.less')
.pipe(cssjoin())
.pipe(gulp.dest('./css/'))
})

```