Skip to content
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

Idea / improvement for css bundle #13

Open
ged-lendinvest opened this issue Dec 22, 2015 · 3 comments
Open

Idea / improvement for css bundle #13

ged-lendinvest opened this issue Dec 22, 2015 · 3 comments

Comments

@ged-lendinvest
Copy link

index.html could have CSS file included:
<link rel="stylesheet" href="app/app.css" type="text/css" media="all" />

@DovydasNavickas
Copy link
Member

You mean bundling CSS into a single file and adding it into index.html?

@ged-lendinvest
Copy link
Author

Yes, however if your approach is different, some guide would be awesome :)

@DovydasNavickas
Copy link
Member

Well, in our case we lazily load all of the CSS files by importing them with SystemJS, which benefits us with faster initial load times. Bundling all of the CSS into one file is a bit of an "old story". Nowadays, with HTTP/2 already becoming available everywhere, there is no point of doing that.

And with SystemJS it's quite simple:
import 'my-styles.css!'

@GiedriusGrabauskas GiedriusGrabauskas changed the title Idea / improvement Idea / improvement for css bundle Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants