Adds the ability for less to rewrite import statement
Install with npm
npm install -g less-plugin-rewrite-import
Options:
paths - default: {}
var RewriteImportPlugin = require("less-plugin-rewrite-import"),
options = { plugins: [new RewriteImportPlugin({paths: {
"old/path": "new/path",
"older/path": function(filename, currentDirectory) {
return "newest/path";
}
})] };
less.render(css, options)
.then(...
Browser usage is not supported.
run the tests by running node test
You require the dev dependencies installed (which includes less)