Nickel Palladium Manganese
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    less-plugin-globpublic

    less-plugin-glob

    Globbing support in Less-imports.

    Travis status npm version David

    This plugin allows to import multiple files using glob expressions. Add this plugin and you can write import like this

    @import "common/**";
    @import "themes/**";

    How to add plugins?

    Section about plugins in Less documentation

    Examples

    lessc usage

    1. npm install -g less less-plugin-glob
    2. Create file with import by glob, something like @import "includes/**"
    3. Run lessc --glob styles.less styles.css and enjoy whole your styles concated by one line

    Programmatic usage

    1. Install plugin locally npm install less-plugin-glob
    2. Import it and add into plugins section of options.
    less.render(lessString, { plugins: [require('less-plugin-glob')] })

    If you are using Gulp or Grunt or something else, you can import and add plugin by same way as well.

    install

    npm i less-plugin-glob

    Downloadsweekly downloads

    3,147

    version

    2.0.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar