-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Proposal: Use ExtractTextPlugin for global styles #2148
Labels
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
Comments
Would you be willing to make a PR for this? /cc @TheLarkInn |
filipesilva
added
type: enhancement
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
labels
Sep 21, 2016
jimitndiaye
pushed a commit
to jimitndiaye/angular-cli
that referenced
this issue
Oct 11, 2016
Uses extract-loader to prepare static files for styles rather than use style-loader and thus avoids FOUC.
jimitndiaye
added a commit
to jimitndiaye/angular-cli
that referenced
this issue
Oct 11, 2016
@filipesilva submitted PR #2646 |
MRHarrison
pushed a commit
to MRHarrison/angular-cli
that referenced
this issue
Feb 9, 2017
Fix angular#2148 Fix angular#2020 Fix angular#2826 Close angular#2646
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10
Versions. Please run
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:1.0.0-beta.14
Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Create a new app using
ng new my-app
.Run
ng serve
styles.css is loaded using style-loader causing flash during initial load
The log given by the failure. Normally this include a stack trace and some
more information.
n/a
Mention any other details that might be useful.
Especially for production builds you'd get better UX by loading the styles as a static resource rather than waiting for JS to load and run. Even in dev builds live-reload still works with static files using ExtractTextPlugin
The text was updated successfully, but these errors were encountered: