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
1
vote
0 answers

Error in plugin gulp-less: Could not parse alpha in jquery-ui.css

I get the following error when I gulp: Error in plugin 'gulp-less' Message: Could not parse alpha in file C:\***\vendor\jquery-ui\jquery-ui.css line no. 1307 Details: type: Syntax filename: C:\***\vendor\jquery-ui\jquery-ui.css …
jasie
  • 2,192
  • 10
  • 39
  • 54
1
vote
1 answer

Gulp: Enable Inline Javascript in Less

i am using front end build process with gulp. As a part of my less compiler, i am getting this error " Inline JavaScript is not enabled. Is it set in your options?". Found this solution for Webpack. I am trying to find a solution for gulp config.…
siddhuKantipudi
  • 303
  • 4
  • 11
1
vote
2 answers

How to rewrite SASS map-merge, map-get in LESS

Can you help me to write some code for create sprite template in Less via gulp spritesmith? I have sprite.template.mustache with Sass functions and mixins: $icons: (0:0) {{#items}} $icons: map-merge($icons,({{name}}: (X: {{px.offset_x}},…
1
vote
1 answer

gulp with less: run less, concat and minify css with sourcemaps?

I am trying to make one css file that is minified, but contains a source map in case I need to debug on production which happens often. This won't work. If I use the below code: gulp.task('process:css', function () { return gulp.src([paths.css,…
SventoryMang
  • 10,275
  • 15
  • 70
  • 113
1
vote
2 answers

Is there a way to tell less-css/gulp-less to leave an @import rule as-is

I'd like the css file produced by the less compiler to contain an @import directive at the beginning of the file. I.e. given this less file: @import "external.css" /* this import directive should be left as is */ @import "globals.less" a { color:…
M4N
  • 94,805
  • 45
  • 217
  • 260
1
vote
0 answers

Gulp TFS checkout for only modified files in dest folder when src folder files are changed

I am trying to checkout files from dest folder when I change files in the src folder. Currently when I use tfs-gulp-checkout plugin it is checkout all the files, but I am trying to checkout only modified files in src folder to that of dest folder: …
VR1256
  • 1,266
  • 4
  • 28
  • 56
1
vote
1 answer

How to compile bootstrap to get the same version as precompiled?

I bought a template. If I try to compile it with the precompiled version of bootstrap everything is fine. @import "bootstrap.css"; //Precompiled Bootstrap @import "nifty/nifty.less"; //My theme However, If I will compile the bootstrap less variant,…
Christian Gollhardt
  • 16,510
  • 17
  • 74
  • 111
1
vote
1 answer

Gulp to compile LESS in multiple Wordpress theme folders and create respective CSS folders

I am trying to get Gulp to compile all my LESS files from a LESS folder and then create a CSS folder within their respective Wordpress theme folders compiled into a directory css/main.css file. This is using Wordpress…
dope
  • 113
  • 3
  • 11
1
vote
0 answers

Gulp - Less errors

I am pretty new to Gulp - I'm a new convert from Grunt. I've setup my first Gulp file to preprocess var gulp = require('gulp'); var cleanCSS = require('gulp-clean-css'); var less = require('gulp-less'); var autoprefixer =…
Dancer
  • 17,035
  • 38
  • 129
  • 206
1
vote
1 answer

Gulp-less watcher breaks when a less error is encountered in a file

I want to watch a folder of less files. When one of them is changed, I want to compile only the "styles.less" file (this file contains @imports to the rest of the files like "header.less", "navigation.less", etc.) For this, I created 2 tasks. When I…
Valeriu Ciuca
  • 2,084
  • 11
  • 14
1
vote
0 answers

gulp-less, browserSync setup reloads after injection

For the life of me, I cannot somehow find what is wrong with this configuration! After injecting the master.css changes, instead of just reflecting the changes, my browser window automatically reloads although it says "injected". Could someone…
zarun
  • 910
  • 9
  • 26
1
vote
1 answer

gulp-less relative images paths not flattened?

I have the following document structure └── Content ├── Images │ ├── document.png │ └── document2.png └── Css ├── Controls │ └── Document.less └── Main.less Content/Css/Main.less: @import…
Peter
  • 37,042
  • 39
  • 142
  • 198
1
vote
0 answers

How to write an advanced laravel elixir gulpfile

I work for the first time with Laravel. I'm used to work with gulp and I usually use a manual method in the gulpfile. I'd want tranform it with laravel-elixir but i'm lost with the following problematics: Several files locations and types (css,…
1
vote
1 answer

Is it good practice to have gulp copy modules?

Should I use gulp to copy my node_modules over to my development directory? or is this bad practice? I am currently just copying them over but I feel like there is a better way.
clement360
  • 121
  • 1
  • 9
1
vote
0 answers

gulp less can't find bootstrap.less which is outside the less file that's importing it on windows

I'm having an issue with path on windows. On OSX it works just fine. Here is my task: gulp.task('build:less', function () { return gulp.src('./src/less/style.less', {base: './src/less'}) .pipe(less({ paths:…
Diego Vieira
  • 1,150
  • 2
  • 13
  • 31