Questions tagged [gulp-less]

gulp-less is a gulp plugin for Less (a dynamic stylesheet language).

gulp-less is a gulp plugin for the dynamic stylesheet language called Less.

118 questions
3
votes
2 answers

Combining Gulp tasks into one gulp-rev manifest

Just starting out with Gulp - it's freaking great. This works but the rev.manifest over writes itself and doesn't have both the 'style' and 'scripts' in it. There must be a better way. Right? :-) gulp.task('script', function() { var scripts =…
Staple
  • 712
  • 1
  • 10
  • 20
3
votes
1 answer

Gulp pipe to separate destination folders

I am writing a gulp task that goes through several folders and watches for less files. I want to pipe the compiled css back to the same folder the less file came from. Unfortunately, I can't seem to find a good way to give each of the files a…
M1Reeder
  • 692
  • 2
  • 7
  • 22
3
votes
2 answers

Can't get gulp-less to run only if file has changed

I can't get gulp-less to not process everything, everytime. I've tried: updating my version of gulp using gulp-changed using gulp-newer It works with gulp-ngmin, but not with gulp-less So this processes test.js only if I change test.js: var SRC =…
Ashley Coolman
  • 11,095
  • 5
  • 59
  • 81
3
votes
1 answer

gulp-notify error; No reporter specified

I am developing a Magento website using Vagrant and Puppet to manage my dev environment. I am using the Magento Boilerplate theme (https://github.com/webcomm/magento-boilerplate) as a base, which uses Gulp.js to run automatic compilation of LESS and…
AppSol
  • 316
  • 1
  • 4
2
votes
1 answer

Gulp 4 browsersync does not refresh when changing .less file

Link to Github repo: https://github.com/Greatshock/Netcracker-Study-Course/blob/f9bfb413929feec51064a78abf1450845f867186 I have a file named base.less, where all the styles are @import-ed. When I run the gulpfile (npm run dev), everything is being…
2
votes
1 answer

gulp-watch in combination with gulp-less caching issue

I have the following setup: // watch for changes gulp.task('watch', function () { gulp.watch('./assets/**/*.less', ['compile-less']); }); gulp.task("compile-less", () => { return gulp.src('./assets/build-packages/*.less') .pipe($.less({ …
fabioth
  • 21
  • 3
2
votes
1 answer

gulp-less task exits with zero on invalid styles

Firstly, here is a repo with very simple example of my problem: https://github.com/nkoder/example-of-gulp-less-zero-exit-on-error I want to define gulp build pipeline which fails on any error. This pipeline would be used in automated process (eg.…
Beetroot Paul
  • 101
  • 2
  • 9
2
votes
1 answer

Gulp watch task sequence and Browser Sync

I am a new to using Gulp, just trying to learn it...Now the problem i get and want to ask is the way to setup default task with watch and browser sync included I need to know am i doing something wrong Can anybody improve my code here, i don't…
Muhammad Ahsan
  • 1,870
  • 2
  • 20
  • 31
2
votes
2 answers

Why doesn't :extend() compile with gulp-less?

I created an :extend expression following the LESS documentation. But gulp-less doesn't compile it. What's wrong with these expressions? html { &:extend(body); } body { height: 100%; } or html:extends(body) { } body { height: 100%; }
AxD
  • 2,714
  • 3
  • 31
  • 53
2
votes
1 answer

I can't get the data-uri() function to work on gulp.js to base64 an image on mac

I have a less mixin set to generate a base64 background image, like this sample output. .test { background-image: url("/images/ui-baseline.png"); } .svg .test { background-image:…
Matt
  • 806
  • 3
  • 12
  • 32
2
votes
2 answers

Referencing two gulp tasks within a default

I have a gulp 'default' task where I want to clean a folder before gulp continues to build my minified CSS and JS. This 'clean' task needs to run only once per default task. But I am having issues trying to get default task to reference the real…
Energetic Pixels
  • 349
  • 3
  • 15
2
votes
2 answers

less variables in different files with gulp

I'm working on a gulp task about compressing less and minify css, the only point it's troublesome is that I need some hardcoded 3 different variables in the 3 different environments(local, dev, prod) with 3 files.less. I swap the right version of…
davesnx
  • 374
  • 3
  • 16
2
votes
2 answers

Gulp gulp-less and gulp-sourcemaps giving wrong sourceMappingURL

I have a gulp workflow with a simple less task like so: gulp.task('less', function() { gulp.src(source_less) .pipe(sourcemaps.init()) .pipe(less({ sourceMap: true })) .pipe(sourcemaps.write()) …
Nicky
  • 3,607
  • 6
  • 33
  • 64
2
votes
1 answer

Is there a way to get gulp to pass along error messages/position?

I've created a less task: var gulp = require('gulp'), less = require('gulp-less'); gulp.task('dktest-less', function () { gulp.src('dktest/**/*.less') .pipe(less()); }); and when I run it I get: (dev) c:\work\dev\dkjs>gulp…
thebjorn
  • 26,297
  • 11
  • 96
  • 138
2
votes
1 answer

Gulp globbing and negate

I'm having an issue where I'm unable to compile a set of LESS file using Globbing. My structure is this: + dir3 - dir3.1 - dir3.1.1 - dir3.1.2 - dir3.2 - dir3.3 - responsive.less - fixedwidths.less Each dir has a set of less files…
Qasim
  • 168
  • 1
  • 8