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.dest() when using multiple globs

I'm having trouble with a glob and gulp.dest(). My task looks like this return gulp.src('./clients/*/assets/less/*.less',{ base: process.cwd() }) .pipe(less({ paths:[path.join(__dirname, 'less')] }).on('error', function(err){ …
0
votes
0 answers

Gulp, less and sourcemaps makes me crazy (not working)

Input: gulp.js var gulp = require('gulp'); var less = require('gulp-less'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('less', function() { return gulp.src('src/less/style.less') .pipe(sourcemaps.init()) …
Max.A
  • 71
  • 5
0
votes
0 answers

Gulp only compiles LESS the first time I run it. It still sees my changes but doesn't update the compiled CSS file

I'm a little new with gulp. I have an old Wordpress theme which I'm trying to use gulp with to compile the LESS files. My structure is like this: -theme --library ---less ----style.less (all the imports all of the less files) ----brew (all the less…
evanart
  • 11
0
votes
1 answer

Gulp wouldn't watch any changes

I am scratching my head around but can't seem to figure out whats wrong with the following gulpfile which simply watch and compile less file. This simply won't watch less changes, I have tried all gulp, gulp watch. I have to manually run gulp after…
Ghazanfar Mir
  • 3,493
  • 2
  • 26
  • 42
0
votes
1 answer

Gulp css styles are not updated

I have problem. Yestrday I had to update the Node.js kernel and now that I change something in the LESS file, there will be no css update. Gulpfile is the same as before the update. Could someone advise me what's wrong with my gulpfile script? The…
ondra15
  • 143
  • 4
  • 16
0
votes
1 answer

Gulp + Less + Minify CSS error: concat multiple Less files?

How do you concat multiple Less files? For instance, I have functions.less with all the functions that I want to use them in the style.less: functions.less: .rotate (@deg) { -webkit-transform: rotate(@deg * 1deg); -moz-transform: rotate(@deg…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
0 answers

gulp task flow not working as expected

I have two tasks and they are 'styles' and 'clean-styles'. A watch task watches for any changes in .less files and triggers the styles task when it finds a change. This scenario works fine. When there is a syntax error in .less, the error is shown…
chirag_lad
  • 229
  • 1
  • 16
0
votes
0 answers

Debugging strange less output in css

I use gulp and gulp-less to preprocess my .less files, and over time I've come up with some pretty complex structures that, while allowing me some real flexibility, also sometimes make debugging difficult. Currently, I have the following output at…
dgo
  • 3,877
  • 5
  • 34
  • 47
0
votes
1 answer

Gulp gulp-less to include component sub-folders

My less folders contain sub folders (with more on the way). It looks like so... Assets |- js |- less |- students |- students.less // ignores |- courses |- courses.less // ignores |- teachers …
Modelesq
  • 5,192
  • 20
  • 61
  • 88
0
votes
1 answer

Gulp-kss issues

I am trying to get gulp-kss working on my project, but I am encountering issues when I try to run my task. I get the following error message: [12:07:28] Using gulpfile ~/Documents/Websites/company/project-uiapp/gulpfile.js [12:07:28] Starting…
Herr Josua
  • 453
  • 7
  • 19
0
votes
1 answer

How can I merge 2 vinyl-fs with gulp to not create a temporary file from a partial pre-compiling task

In a goal to harmonize the style of an SPA application I want to define somme style variable in a JSON file and use it in my Less compilation. Basically it can work like this: gulp.src('variables.json') .pipe(function () { // process to…
Techniv
  • 1,967
  • 15
  • 22
0
votes
1 answer

gulp-less doesn't make CSS files anymore

I'm using gulp for generating CSS from LESS. It has worked perfectly, but now the script seems to ignore the LESS files. Here is my gulpfile.js (it is definitely correct, since I have not change it in the last time): // Include Gulp plugins var gulp…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
0 answers

why my less source maps don't work?

I use the gulp-less compiler with gulp-sourcemaps write the source maps file. but it don't work in my chrome dev tool, I can't see the content of less. only css file. it's my gulp file: var gulp = require('gulp'); var less =…
hellolibo
  • 61
  • 4
0
votes
1 answer

Gulp-angular, Gulp-less and bootstrap

I m working with gulp-angular yeoman generator and I m having some troubles dealing with gulp-less and bootstrap. Actually, when trying to serve my files, I've got something like : Message: Invalid mapping:…
mfrachet
  • 8,772
  • 17
  • 55
  • 110
0
votes
1 answer

gulpfile.js compiles css incorrectly

Styles on my project organized this way: styles/ /1.less /2.less /.. /style.less /style.css In style.less are imports in order: @import '1'; @import '2'; //.. in example 1.less contain properties for html tag,…
Nikita Ivanov
  • 31
  • 1
  • 1
  • 4