Skip to content

Any scss updates causing full page refresh on new build #2355

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

Open
1 task done
stephengardner opened this issue Nov 19, 2016 · 1 comment
Open
1 task done

Any scss updates causing full page refresh on new build #2355

stephengardner opened this issue Nov 19, 2016 · 1 comment

Comments

@stephengardner
Copy link

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.

New build... yo angular-fullstack
Start server... gulp serve
Edit any .scss file
Watch page refresh.

How can we make webpack not reload the page? This is the point of the HMR built-in to webpack css

Item Version
generator-angular-fullstack 4.1.0
Node 6.2.2
npm 3.9.5
Operating System Windows 10
Item Answer
Transpiler TypeScript
Markup HTML
SCSS
Router ui-router
Client Tests Mocha
DB MongoDB
Auth Y
@stephengardner stephengardner changed the title ANY scss updates causing full page refresh on new build Any scss updates causing full page refresh on new build Nov 19, 2016
@Awk34
Copy link
Member

Awk34 commented Nov 22, 2016

This will definitely require HMR for Angular 2 (generator version 5), as each component's SCSS file will be loaded directly with JS for each component. I believe our current config for 4.1.0 would also require HMR for this, since the CSS is getting injected into the page with style-loader. While this would make developing a lot nicer, I'm focused on trying to the the 5.0.0 beta out. If you'd like to work on this for the generator, it would be greatly appreciated.

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