-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to best use third-party sass libraries? #431
Comments
That's simply the way Sass work: all files starting with an underscore will not be compiled and are meant to be imported, all the other files are meant to be compiled to their own .css files. I think in that case it's the bulma repo that is a bit weird and rely on compiling a single file via
That would require making changes to libsass which is definitely out of scope and would probably be rejected anyway. |
Ah yes, you are right.
You are right. The solution I've applied seems to be the correct one. I might report this to Bulma, but this is indeed not an issue with Gutenberg (awesome tool, by the way!). |
Which one? At the moment I put it in the |
@batisteo, see my initial post:
|
If this sass feature is implemented, it would solve this issue nicely, I think: Just prefix the root folder of the CSS / Sass Framework with an underscore and |
To, me this indeed seems to be an issue, although maybe not a bug per se, with Bulma. I am proposing a simple workaround here, in the issue mentioned above: jgthms/bulma#3675 (comment) This workaround would work with any third-party sass library that does not conform to zola/grass's expectations about the naming scheme with the underscores. |
I wanted to use Bulma on my page, so I downloaded the sass files and put them in the right place in the
sass
folder. However, I kept running into "undefined variables" errors. Eventually I figured out that while the "import all" files where named_all.sass
, the sub-files didn't have underscores prefixed, so they would get compiled standalone by Gutenberg.The solution was to rename all files to have an underscore.
Is there a better way to tackle this? For example, by letting Gutenberg know not to compile a specific directory in the
sass
directory, to allow those files to imported by some other file, but otherwise be ignored?The text was updated successfully, but these errors were encountered: