-
Notifications
You must be signed in to change notification settings - Fork 12k
Using css-loader in 'main' #3617
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
Comments
I'm new also, but I think what you want to do is add the stylesheet you want loaded to app.styles array in angular-cli.json in the project root. Note that the path is relative to the app root, so for instance, use "../node_modules/font-awesome/css/font-awesome.min.css", Hope this helps. |
This would be useful, yes. Relevant to this is #3511, where we actually had Maybe we can look at re-adding it. |
Superseded by #4285 |
@filipesilva I vote to css-loader too. |
@asnowwolf your PR as is won't fix sourcemaps since your fix in angular/angular is not in. Can you resubmit your PR here after angular/angular#14175 is accepted? |
Ok, I will resubmit it after that. I've verified it with my patched version. |
I trust it works in your patched version, mind you. It's just that it might be merged in a different form (or not merged at all) and until then, the code in the CLI would not be verifiable. |
Yes, I understand. It's a really good rule.
2017-02-13 23:31 GMT+08:00 Filipe Silva <[email protected]>:
… I trust it works in your patched version, mind you. It's just that it
might be merged in a different form (or not merged at all) and until then,
the code in the CLI would not be verifiable.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3617 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYQ5_VAVX4bIgmnMq32rsyluWdjtQu0ks5rcHdWgaJpZM4LQHuz>
.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is there a reason why component styles and other styles in 'main' are not processed by css-loader?
Let's say I have component with ~15 icons. These are small in size and I want them to be encoded in BASE64. The only way to do it now is to move some component's css rules including 'background[-url]' to styles.scss. But it doesn't help me to make this component reusabe in future (I want to move some components to standalone npm package).
The text was updated successfully, but these errors were encountered: