https://github.com/webuni/less-plugin-rewrite-import
Less plugin for rewriting import statement
https://github.com/webuni/less-plugin-rewrite-import
Last synced: about 1 year ago
JSON representation
Less plugin for rewriting import statement
- Host: GitHub
- URL: https://github.com/webuni/less-plugin-rewrite-import
- Owner: webuni
- Created: 2015-08-07T08:51:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T10:02:36.000Z (almost 11 years ago)
- Last Synced: 2024-11-06T11:51:51.102Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
less-plugin-rewrite-import
==========================
Adds the ability for less to rewrite import statement
lessc usage
-----------
Install with npm
```bash
npm install -g less-plugin-rewrite-import
```
Options:
paths - default: {}
Programmatic usage
------------------
```js
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
-------------
Browser usage is not supported.
Testing
-------
run the tests by running `node test`
You require the dev dependencies installed (which includes less)