Skip to content

Native libsass plugin for glob-based imports

License

Notifications You must be signed in to change notification settings

glebm/libsass-glob

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libsass Glob Plugin

Native libsass plugin for glob-based imports

Building

You need to have [libsass] 1 already [compiled] 2 or [installed] 3 as a shared library (inclusive header files). It is then compiled via cmake. See this example to compile it on windows via [MinGW] 4 Compiler Suite:

git clone https://github.com/sass/libsass.git
mingw32-make -C libsass BUILD=shared CC=gcc -j5
git clone https://github.com/mgreter/libsass-glob.git
cd libsass-glob && mkdir build && cd build
cmake -G "MinGW Makefiles" .. -DLIBSASS_DIR="..\..\libsass"
mingw32-make CC=gcc -j5 && dir glob.dll

You may define LIBSASS_INCLUDE_DIR and LIBSASS_LIBRARY_DIR separately!

Examples

@import "lib*.scss"
@import "**/*.scss"

Only globstar (**) and asterisk (*) wildcards are supported so far.

Caveats

  • Not really tested in the wild
  • May not work with unicode filenames

Copyright

© 2016 [Marcel Greter] 5

About

Native libsass plugin for glob-based imports

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.8%
  • CMake 28.2%
  • CSS 9.0%