gulp-cssjoin
v0.1.2
Published
Extend and join css @import loaded file
Downloads
14
Readme
gulp-cssjoin
Join css that @import syntax loaded file for gulp. more info cssjoin
Usage
npm install gulp-cssjoin --save
Simple Usage
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
gulp.task('css', function(){
gulp.src('./less/*.less')
.pipe(cssjoin())
.pipe(gulp.dest('./css/'))
})