-
Notifications
You must be signed in to change notification settings - Fork 25
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
ignoreImports option does not seem to work with ~@angular/material/theming imports. #81
Comments
It appears that the I included the following property and value in my scss-bundle.config.json and the outFile did not contain any material scss code:
|
@jefferywroblewski-accesso Might this be for a newer version? My version does not seem to know the As for the issue at hand, i seem to have fixed it. The solution for me was to move the {
"bundlerOptions": {
"entryFile": "projects/shared-components/src/_theme.scss",
"outFile": "dist/shared-components/bundled.scss",
"rootDir": "",
"ignoreImports": ["~@angular/.*"],
"logLevel": "debug"
}
} Everything is now working like it should now that |
Same problem occurs here. having a Moving the
Would be nice if this was separated: node_modules default from root or something? (or a separate option) |
@MalumAtire832 , My mistake. The I was able to get this working where it is only ignoring the @angular imports using the same approach that you used. Thanks for the comment which reminded me to look for an updated version. 👍 |
Hey @the-ult and @MalumAtire832. If I understood correctly, you having issues with configuration file location and where exactly I have published a new canary version. It has CLI flag
I think another issue is somewhat related #74. |
Thanks @MartynasZilinskas will give it a try tomorrow |
@MartynasZilinskas The combination of the {
"bundlerOptions": {
"entryFile": "./projects/shared-components/src/_theme.scss",
"rootDir": "./projects/shared-components/src",
"project": "../../",
"outFile": "./dist/shared-components/theme.scss",
"ignoreImports": ["~@angular/.*"],
"logLevel": "debug"
}
} Thank you for this! I only noticed one thing: The For example;
Is this the expected behavior? Because it strikes me as a bit odd. |
@MalumAtire832 I think I know where is the problem. Could you test with new canary version ( |
@jefferywroblewski-accesso
|
Thanks @MartynasZilinskas! I'm using {
"bundlerOptions": {
"entryFile": "./src/components/src/components.theme.scss",
"rootDir": "",
"project": "../../",
"outFile": "./dist/components/theming.scss",
"ignoreImports": [
"~@angular/.*"
],
"logLevel": "debug"
}
} |
I am using the same config with
Why is it even trying to resolve the file if it's specifically ignored? |
This still seems to be an issue in 3.1.1 even when following the guidance above. Calling from workspace root (where node_modules) is and setting project config to "./" or leaving blank does not solve the problem. |
Describe the bug
ignoreImports
option does not seem to work with~@angular/material/theming
imports.To Reproduce
toolbar.component-theme.scss
components.scss
index.scss
scss-bundle.config.json
Expected behavior
The
~@angular/material/theming
imports should be ignored and the files should be bundled.Package version: v3.0.2
Node version: v12.13.0
OS: Windows 10 - 1903
The text was updated successfully, but these errors were encountered: