Created
June 18, 2015 18:26
-
-
Save Kruegs/3b4b720f9fe36f1d6532 to your computer and use it in GitHub Desktop.
Multi-line Comment Error - Less Clean CSS
This file contains 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 gulp = require("gulp"); | |
var less = require("gulp-less"); | |
var LessPluginCleanCSS = require("less-plugin-clean-css"); | |
var sourcemaps = require("gulp-sourcemaps"); | |
gulp.task("less", function () { | |
var cleanCss = new LessPluginCleanCSS({}); | |
return gulp.src("main.less") | |
.pipe(sourcemaps.init()) | |
.pipe(less({plugins: [cleanCss]})) | |
.pipe(sourcemaps.write("./")) | |
.pipe(gulp.dest("dist/")); | |
}); |
This file contains 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
/* | |
Test | |
*/ | |
.test {color:red;} |
This file contains 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
$ gulp less | |
[13:19:50] Using gulpfile c:\Development\gulp-test\gulpfile.js | |
[13:19:50] Starting 'less'... | |
Potentially unhandled rejection [2] Error: ENOENT, open 'c:\Development\gulp-test\$stdin' | |
at Error (native) |
This file contains 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
{ | |
"name": "gulp-test", | |
"version": "1.0.0", | |
"devDependencies": { | |
"gulp": "3.9.0", | |
"gulp-less": "3.0.3", | |
"gulp-sourcemaps": "1.5.2", | |
"less-plugin-clean-css": "1.5.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment