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
0
votes
1 answer

Gulp Watch task

I have the following gulp tasks: gulp.task('less', function() { gulp.src('public/stylesheets/**/*.less') .pipe(less()) .pipe(minifycss()) .pipe(concat('styles.min.css')) …
Markus
  • 1,565
  • 6
  • 26
  • 57
0
votes
0 answers

gulp-less seems to be removing @media print query

It seems to be ripped off all my @media print less queries in build steps. Is this a 'gulp-less' bug or am I doing something wrong? I'm new to this build steps. My gulp task for less gulp.task('less', function () { …
Dasun
  • 3,244
  • 1
  • 29
  • 40
0
votes
1 answer

Chrome not live reloading when LESS partials are edited

I have a project where I'm using LESS as my CSS pre-processor and Gulp as my build tool. I have a folder structure as follows: stylesheets > less >> partials >>>_colours.less >> index.less My index.less file looks like this: @import…
kshep92
  • 841
  • 1
  • 11
  • 22
0
votes
1 answer

Gulp serve error events.js: 85

I am getting error while doing gulp serve. I am pretty new to all this npm, bower and gulp/grunt stuff. So I was wondering what could be the possible reason for this error. Has anyone experienced this error before? I have attached the following…
Rana_S
  • 1,520
  • 2
  • 23
  • 39
0
votes
0 answers

Gulp watch not working on imported less file

I'm trying to compile all the .less files to css, and leave .import.less files unprocessed (similar to Meteor less package). My file structure is as…
movila
  • 927
  • 1
  • 8
  • 12
0
votes
1 answer

gulp-sourcemaps not including content when using gulp-less and gulp-minify-css

I have a Gulp taks like this: var gulp = require('gulp'); var less = require('gulp-less'); var minifyCss = require('gulp-minify-css'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('less', function() { return gulp.src('./less/*.less') …
dgaviola
  • 2,421
  • 2
  • 26
  • 37
0
votes
1 answer

gulp-watch-less not triggering on Windows

I have been trying to solve this problem for a couple of days now. I am trying to get gulp to compile my less files when I save them but gulp-watch-less is not being triggered by changes in files I am watching. My gulpfile.js is: var gulp =…
Ben
  • 897
  • 2
  • 16
  • 34
0
votes
1 answer

Gulp minify-css only for distribution

How can I minify CSS generated from LESS only to 'dist' folder? Of course all gulp plugins are corretly installed. Everything goes OK except minifying CSS. Here is my code: gulp.task('styles', function () { return gulp.src('app/less/*.less') …
quarky
  • 710
  • 2
  • 13
  • 36
0
votes
2 answers

Gulp with WinSCP - livereload and less

I am using gulp with livereload, less, and others on a remote server. I have successfully used gulp before many times, and have never experienced this scenario. I am using WinSCP to save/edit files (I double click the file, and it opens in Sublime…
dgo
  • 3,877
  • 5
  • 34
  • 47
0
votes
1 answer

gulp-less undefined variable in the same file, no error running lessc

I am very perplexed... I am using gulp-less to convert my less file to css. I have the following code: @node_modules_path: "../../node_modules"; @bower_path: "../../bower_components"; @fonts_path: "../../../public/fonts"; //bootstrap…
Gioia Fueter
  • 605
  • 1
  • 5
  • 16
0
votes
1 answer

How to Pass a Relative Destination Path With gulp-watch and gulp-less

So I want to watch for changes made to less files and have the destination path for the CSS be the same folder where the changed less file. Here's the general file structure: root | site1 | | | includes | | | | …
leggomuhgreggo
  • 155
  • 1
  • 9
0
votes
3 answers

Gulp plumber cannot pipe to undefined

I am trying, to write a module that when gulp is watching a task, and a Less file changed with some error, it should give a message to the console, but it should not crash the system, which it does no: This is the code I have written: var onError =…
Manam
  • 354
  • 5
  • 16
-1
votes
1 answer

Error: Cannot find module 'less' with pnpm

Im trying to use pnpm but get this error on the buildmachine: Error: Cannot find module 'less' at Function.Module._resolveFilename (module.js:339:15) at Function.require.resolve (internal/module.js:23:19) at…
J4v4Scr1pt
  • 289
  • 5
  • 16
1 2 3 4 5 6 7
8