-
Notifications
You must be signed in to change notification settings - Fork 60
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
import-once broken when compiling multiple files per eyeglass instance #65
Comments
are you using gulp? |
no, i'm using grunt! |
Hi, Please, let me know something because i'am using eyeglass on a my project. |
I can confirm this issue as well on a metalsmith project. @hitmands, setting var eyeglass = new Eyeglass(...);
eyeglass.enableImportOnce = false;
... I'll look into a proper fix. |
@chriseppstein it seems we don't keep track of the top level file, so we don't have any way of keeping track of what was actually imported into the current context. That is, in import_utils.js, I think this should really be something like... I did a bit of digging, but I don't think this is currently exposed in the importer. You only seem to have access to the previous file (but not the whole import chain). This might require a patch to node-sass, but I'll keep digging. |
@eoneill, thanks, but I can't disable the importOnce prop, By the way, seems a little-fix, so I'll try in the next days! |
Clean up the caching code & comments
Hi,
I've an issue on _import-once_.
I have two different scss files that will be compiled in two different css files.
In both of these .scss files (for example: bootstrap.scss and application.scss) I need to import a single file called: _variables.scss.
The import-once module seems to prevent this behaviour and in the second file that requires _variables.scss I obtain
undefined variable: $variableName
is there any workaround for doing this?
Gius
The text was updated successfully, but these errors were encountered: