Questions tagged [grunt-contrib-less]

Compile LESS files to CSS.

Grunt file to compile LESS files to CSS.

58 questions
0
votes
1 answer

How to deactivate compressing in grunt less?

The grunt-contrib-less package provides the option compress, that should allow managing uglifying/minifying/compression of the destination CSS file. It is a boolean with the default value false. For any reason it woesn't work for me -- whatever I…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

How to import lesshat into every compiled .less file

In grunt-contrib-stylus there is a import option: import Type: Array Import given stylus packages into every compiled .styl file, as if you wrote '@import '...' in every single one of said files. options: { compress: false, …
elhoucine
  • 2,356
  • 4
  • 21
  • 37
0
votes
1 answer

Grunt less source maps change path prefix

My config server: { options: { sourceMap: true, sourceMapFilename: '.tmp/styles/main.css.map', sourceMapURL: '/styles/main.css.map' }, files: { '.tmp/styles/main.css': …
ButuzGOL
  • 1,233
  • 2
  • 13
  • 27
0
votes
1 answer

Less SourceMap file location relative to filesystem, not website

I have a file structure that looks like this (simplified for brevity): /less/ /styles.less /public/ /css/ /styles.css /styles.css.map /images/ index.php /gruntfile.js Gruntfile.js: less: { …
dmathisen
  • 2,269
  • 3
  • 36
  • 63
0
votes
1 answer

How to set CSS Source Map output destination when grunt-contrib-less is used

I am using grunt-contrib-less for compiling less files. I have grunt locally installed at root of project folder. The css files are located at qa1/avinash/html5/phase1/css/ path from root of project folder. So this is the path i am specifying for…
Sagi_Avinash_Varma
  • 1,489
  • 11
  • 23
0
votes
1 answer

Why did my inline LESS sourceMap break?

Been happily working with LESS for weeks now, using grunt-contrib-less (version 0.11.4) dependency in my package.json and initializing it in the gruntfile. The map is generated inline at the end the final minified styles.css. I was pulled away from…
Halfacre
  • 565
  • 8
  • 26
0
votes
1 answer

Dynamic Grunt Watch configuration

My site file structure is something like this: app less themes default modern etc public themes default css modern css etc So /app/less/themes/{{…
dmathisen
  • 2,269
  • 3
  • 36
  • 63
0
votes
3 answers

prevent grunt-contrib-less imports from compiling

Is there a way to prevent grunt-contrib-less from compiling files that have an underscore? I have a set of files which are being imported in the main file. The imported files have a been prefixed with an underscore @import "_fileone" but because im…
Qasim
  • 168
  • 1
  • 8
0
votes
1 answer

Alternative to grunt-contrib-less?

I'm trying to compile a set of .less files, and generate individual source maps in the process. I have about 20 source files currently, and so I'm using dynamic expansion to load them all in. I would then like the file compiled to css (works), and…
His Royal Redness
  • 721
  • 1
  • 9
  • 17
0
votes
1 answer

Less complaining about @brand-success is undefined, even though it is in variables.less

When trying to compile less, I am getting a missing NameError: variable @brand-success is undefined in app/static/css/less/style.less on line 131, column 15:. However, it is app/bower_components/bootstrap/less/variables.less which is imported by…
dman
  • 10,406
  • 18
  • 102
  • 201
0
votes
1 answer

Using grunt-contrib-less inline. Generate one CSS file foreach LESS file

I am attempting to use the grunt-contrib-less grunt task to compile my less files to css. What I would like to do is compile them inline, so that each .less file creates a single .css file. Workflow: 1) Initial file system: someFolder2 …
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
0
votes
1 answer

Does grunt-contrib-less support --source-map-map-inline?

Title says it all. Is this Less option: http://lesscss.org/usage/#command-line-usage-source-map-map-inline Available via grunt-contrib-less, or some other plugin? I'm not hopeful since it does not seem be mentioned anywhere in the grunt-contrib-less…
oliakaoil
  • 1,615
  • 2
  • 15
  • 36
-1
votes
1 answer

Grunt watch less files in dynamic path

Good day! As I can configure grunt to monitor a dynamic path, I explain, I have a path (/module/[namemodule]/assets/*.less), in the namemodule part it changes, it can be anything (name) how can I have the assets folder of all the modules monitored…
1 2 3
4