ember-cli: Failure to load vendor.css with Ember 2.13.0-beta
We attempted to upgrade the html-next/flexi addon to the 2.13 beta but the dummy app is no longer generating CSS. This issue does not occur in 2.12.
Chrome developer tools reports: Failed to load resource: the server responded with a status of 404 (Not Found) vendor.css
To reproduce the bug, checkout the flexi repo and attempt to visit the dummy site.
Output from ember version --verbose && npm --version:
ember-cli: 2.13.0-beta.2
http_parser: 2.7.0
node: 7.2.0
v8: 5.4.500.43
uv: 1.10.1
zlib: 1.2.8
ares: 1.10.1-DEV
modules: 51
openssl: 1.0.2j
icu: 58.1
unicode: 9.0
cldr: 30.0.2
tz: 2016g
os: darwin x64
3.10.9
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (25 by maintainers)
Commits related to this issue
- [FIXES #6927] [BUGFIX beta] ensure addon.css is always included — committed to ember-cli/ember-cli by stefanpenner 7 years ago
- [FIXES #6927] [BUGFIX beta] ensure addon.css is always included — committed to ember-cli/ember-cli by stefanpenner 7 years ago
- [FIXES #6927] [BUGFIX beta] ensure addon.css is always included — committed to ember-cli/ember-cli by stefanpenner 7 years ago
- Merge pull request #6961 from ember-cli/addon-css [FIXES #6927] [BUGFIX beta] ensure addon.css is always included — committed to ember-cli/ember-cli by rwjblue 7 years ago
FWIW, the
app.importwas not random (and it wasn’t only to ensure the file was emitted it just also did that). Prior to that change all addon css was concatted down to a single file, then concatted again into the finalassets/vendor.css.IMHO, the issue as reported is somewhat odd. Why would we want to download an empty CSS file in all apps that don’t have vendor styles? I’d call that a bug 😈 …
I think what we want is a mechanism to do conditional
<script>/<link>inindex.htmlbased on if we have any assets. That way we don’t even attempt to load (and waste time during application boot) an empty CSS file.This can be reproduced in a fresh ember-cli 2.13 beta app by removing the welcome page addon. The problem goes away if you drop ember-cli to 2.12.0.
@Dhaulagiri so this happens with just a bare bones, fresh app? Thought it was related to something weird we were doing. Glad it’s not just us!