ember-fastboot breaks live css reloading
See original GitHub issueWorking with ember-fastboot and ember-cli. It appears (with some help in the ember slack community) that the ember-fastboot-cli add-on breaks live css reloading.
Upon installing the add-on, all css changes forces a full page page reload instead of the live css reload, when developing under ember s
. Removing the add-on and running it shows the live css reloading working again.
ember-cli: 2.6.3 ember-cli-fastboot: 1.0.0-beta.4
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Fast-Track Ember with Fastboot + Embroider by Suchita Doshi ...
Fast-Track Ember with Fastboot + Embroider by Suchita Doshi and Thomas WangEmber Octane has clearly introduced a paradigm shift in the Ember ......
Read more >Addon Author Guide - Ember FastBoot
Don't Break the Boot. The first step towards FastBoot support is ensuring that your addon doesn't cause the app to crash when it...
Read more >ember-basic-dropdown | Yarn - Package Manager
[MAYBE-BREAKING] The trigger component is now implemented internally as an element modifier. This should not be breaking, but a refactor this big is...
Read more >Webpack Returned Errors to ember-auto-import - Questions
3", "ember-cli-inject-live-reload": "^1.8.2", "ember-cli-less": "^1.5.5", "ember-cli-moment-shim": "^ ...
Read more >ember-auto-import - UNPKG
5, - ENHANCEMENT make v2 addon's with CSS work in fastboot out of the box ... workaround in 1.2.7 had the side-effect of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
looked into this a bit more. It looks like https://github.com/ember-fastboot/ember-cli-fastboot/blob/master/index.js#L93 is the start of the problem, diving deeper in the stack https://github.com/ember-fastboot/ember-cli-fastboot/blob/master/lib/broccoli/fastboot-config.js#L34 is the root of the issue. removing that line allows
ember s
to hot reload the CSS, but will break when running anyember fastboot
commands.Should any of these hooks be run when not in fastboot mode? I tried to block them with a check of
process.env.EMBER_CLI_FASTBOOT
but it seems to be called a few times, the last one returningundefined
, so it seems like this check is not reliable at this point.Indeed, it appears to be.