less-plugin-alternative-imports

1.3.0 • Public • Published

NPM version less-plugin-alternative-imports

Load an alternative less file in imports statements when compiling

lessc usage

npm install -g less-plugin-alternative-imports

and then on the command line,

lessc --plugin=less-plugin-alternative-imports="foo:bar"

This will replace any 'foo' match with 'bar' in all import statements, so an import like '@import "variables_foo.less"' will be replaced by '@import "variables_bar.less"'

Programmatic usage

Programmatic usage is not supported at this time.

Browser usage

Browser usage is not supported at this time.

django-compressor bonus tip

This gist https://gist.github.com/danipv/ac667061a4897d567e5b helps you for use with django-compressor.

Package Sidebar

Install

npm i less-plugin-alternative-imports

Weekly Downloads

39

Version

1.3.0

License

none

Last publish

Collaborators

  • dpascual