Less is an open-source stylesheet preprocessor that extends CSS with dynamic behavior such as variables, mixins, operations and functions. Less plugins extend the Less preprocessor.
Questions tagged [less-plugins]
6 questions
3
votes
1 answer
How to use the less-plugin-clean-css with grunt-contrib-less?
I am trying to use less-plugin-clean-css with grunt-contrib-less but I am unable to get it to run. It seems the grunt configuration can't find or install the plugin. This is for a fork of bootstrap that I maintain.
I have updated the Gruntfile.js…

Caqu
- 1,154
- 1
- 8
- 14
3
votes
1 answer
How to exend the Less compiler with a custom function leveraging a plugin
Since version 2 of Less you can use plugins. You can also use these plugins to add custom function to Less, examples: https://github.com/less/less-plugin-advanced-color-functions/ and https://github.com/bassjobsen/less-plugin-cubehelix
Inspired on…

Bass Jobsen
- 48,736
- 16
- 143
- 224
2
votes
0 answers
How to configure Grunt Less Plugin Autoprefixer in Sails.js?
According to the Bootstrap docs, you needs Autoprefixer to compile Bootsrap LESS source files. The grunt-contrib-less compiler supports less-plugin-autoprefix, but I can't get it to work inside Sails.
Here is my modified task/config/less.js…

jwogrady
- 1,570
- 1
- 15
- 22
1
vote
0 answers
How to install less-plugin-clean-css in Ubuntu 16.04
I am trying to install Odoo 10 in my Ubuntu 16.04 PC and came across with sudo npm install -g less less-plugin-clean-css command. When I trying that line it gives me following error. Please help me to solve this

Swan White
- 211
- 1
- 13
0
votes
1 answer
Howto remove a entry from the tree in a Less visitor plugin
I tried the following:
module.exports = function(less) {
function RemoveProperty() {
this._visitor = new less.visitors.Visitor(this);
};
RemoveProperty.prototype = {
isReplacing: true,
isPreEvalVisitor: true,
run: function (root) {
…

Bass Jobsen
- 48,736
- 16
- 143
- 224
0
votes
2 answers
Remove properties from rendered Less CSS
There seem to be some patterns in LessCSS (1.7.x) that allow (pre/post)-processing of a CSS render tree. I was wondering if it was possible to use the Visitor (I tried that, but couldn't make it work - or anything else) to remove properties from the…

Joscha
- 4,643
- 1
- 27
- 34