-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support for resolving imports while using stylePreprocessorOptions in angular.json #27
Comments
I don't have much context on Angular or The rules expose a
For configuring include paths, populate the I haven't documented this since I sort of just copied the spirit of Webpack on this one. If it works well for you, I can document |
Thanks @juanca for the suggestion. It does solve the issues partially for me.
Note: I am using rule "css-modules/css-variables". |
The webpack resolution algorithm might be able to solve all of these:
Looks like I'm missing I can look into supporting this EOW. I'm also open to a PR -- we can either implement
Can you provide some example code? It'll help me compare it against my conceptual model of css-variables. |
For the 1st problem, there could be multiple paths using '~' . Not sure if we would be able to specify them. For the 3rd: |
I have a couple of the solutions in a PR: #28 The only problem left to solve is adding a way to specify globally available CSS variables. More to come! |
I should have #28 already released under 1.2.0. I am still working through the globally available files in #29 -- it is pre-released under 1.2.0-globals. You will want to configure your global files as an array files: Do you mind seeing if these fix your use-cases? |
If using with Angular framework, imports could be via stylePreprocessorOptions where there won't be a relative/absolute path but just files names that are in directories specified under stylePreprocessorOptions.includePaths.
Currently the lint rule break if such an import is present:
Error: ENOENT: no such file or directory, open 'importedfile.scss'
The text was updated successfully, but these errors were encountered: