Closed acalvo closed 3 years ago
I think you should just remove ~ I have the same import statement and it works
I think you should just remove ~ I have the same import statement and it works
Thanks for the suggestion! But tried it and didn't work... Your config file is similar to what I put, then? Isn't there some config I might be missing? I might try a min repro then to isolate and locate the problem...
Actually, it works! Just substituted
@import '~scss/variables/colors';
with
@import 'src/scss/variables/colors';
Thanks for the tip, @maxisam :)
Hey! I just discovered this project and looks amazing... but tried to run it with no luck. I suppose it's a matter of configuration, but couldn't figure it out with the README.
Thing is that my Angular app has
src/scss/variables/_*.scss
files (for example_colors.scss
) that we import from component styles in this way:So that we can use the color palette variables in that component, among other things.
I tried to run
ngx-unused-css
with this config:The paths are correct (the app code is in that folder, the global style in that path, etc.). When I run
npx ngx-unused-css
I get a ton of these errors:I tried to set different values for
includePaths
with no luck. Can you point me in the right direction? Thanks!