Skip to content

Meesayen/less-plugin-glob

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less-plugin-glob Build Status

Globbing support in Less-imports.

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

Usage example

  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

Caveats

Now glob imports are supported only on top-level stylesheets. In deep cases current dirrectory is lost and we can't properly resolve file paths.

About

Globbing support for LESS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%