Last active
August 29, 2015 14:22
-
-
Save matthewrwilton/4ba2aa77131f8a4894b0 to your computer and use it in GitHub Desktop.
An example gulpfile, demonstrating bundling 2 LESS scripts into a single CSS file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var concatCSS = require("gulp-concat-css"), | |
gulp = require("gulp"), | |
less = require("gulp-less"), | |
sourcemaps = require("gulp-sourcemaps"); | |
gulp.task("less", function () { | |
return gulp.src(["./Content/Less/Site.less", "./Content/Less/Inverted.less"]) | |
.pipe(sourcemaps.init()) | |
.pipe(less({ | |
paths: ["."] | |
})) | |
.pipe(concatCSS("Site.css")) | |
.pipe(sourcemaps.write("../Content")) | |
.pipe(gulp.dest("./Content/")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment