Awesome
Libsass Glob Plugin
Native libsass plugin for glob-based imports
Building
You need to have libsass already compiled or installed as a
shared library (inclusive header files). It is then compiled via cmake
. See
this example to compile it on windows via MinGW 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