Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Combination with less or sass #1

Open
jantimon opened this issue Jun 29, 2015 · 2 comments
Open

Combination with less or sass #1

jantimon opened this issue Jun 29, 2015 · 2 comments

Comments

@jantimon
Copy link

Hi,
could you think of a smart way to combine this loader with sass or less?

I would like to use the fontgen loader to generate a mixin with less or sass and reuse it in my sass or less files.

@IngwiePhoenix
Copy link
Member

Unfortunately, the sass loader does not allow cross-language imports. There is no way of capturing the output or result file at "compile time". The importer of sass-loader would have to be taught how to run loaders. Then, we could change the configuration so that font files only go through the fontgen, and then the sass loader, so the sass output would go into the sass file that required it.

As you see, I have opened a ticket for that. :)

@IngwiePhoenix
Copy link
Member

There might be a way to use SassPort and my Sassport Loader for this purpose now. You should look into it and see if it helps oyu, maybe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants