question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ember-fastboot breaks live css reloading

See original GitHub issue

Working 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:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
davidpettcommented, Jul 18, 2016

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 any ember 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 returning undefined, so it seems like this check is not reliable at this point.

1reaction
meteormanagedcommented, Jul 25, 2016

Indeed, it appears to be.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found