Skip to content

webuni/less-plugin-rewrite-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less-plugin-rewrite-import

Adds the ability for less to rewrite import statement

lessc usage

Install with npm

npm install -g less-plugin-rewrite-import

Options:
paths - default: {}

Programmatic usage

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)

About

Less plugin for rewriting import statement

Resources

Stars

Watchers

Forks

Packages

No packages published