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
- Host: GitHub
- URL: https://github.com/terrierscript/gulp-cssjoin
- Owner: terrierscript
- Created: 2014-03-14T16:05:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-16T00:21:00.000Z (over 11 years ago)
- Last Synced: 2025-08-20T21:53:41.916Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 167 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/'))
})
```