lifegadget / ember-cli-bootstrap-sassy

a fork of ember-cli-bootstrap-sass but without any dependencies on the now defunct bootstrap_for_ember
MIT License
62 stars 33 forks source link

Improve compatibility with FastBoot 1.0+ #49

Closed sandydoo closed 7 years ago

sandydoo commented 7 years ago

As per https://github.com/ember-fastboot/ember-cli-fastboot/issues/387

sandydoo commented 7 years ago

That env variable is being deprecated with FastBoot 1.0 so there won't be a way of differentiating between FastBoot and regular builds. I believe this is because ember fastboot and ember serve are being united. It's actually a breaking change for a lot of addons. Moving forward, the way to exclude assets from being run in FastBoot is to wrap the scripts in an if block that checks for the FastBoot global. So the assets are included in the build, but they won't be run in FastBoot. I also added a check to only wrap js assets. More detailed guide to migrating and managing assets in FastBoot here

yankeeinlondon commented 7 years ago

thanks for the info @sandydoo