Comments (4)
Adding a dependency on ember-asset-loader
does not inherently cause an asset manifest to be created. You need to either include ember-engines
(which does create an assert manifest), or configure something in your application to use ManifestGenerator.extend
itself.
from ember-asset-loader.
I can't actually tell what you are trying to do here. Are you trying to emit two asset manifests?
from ember-asset-loader.
There definitely is a bug here: lib/manifest-generator.js
uses the second argument to contentFor
to determine the modulePrefix
which will not match the expected module prefix when app/config/asset-manifest.js
module is evaluated.
Should be gathering the modulePrefix from the findHost
result, not the second argument. That would resolve this specific error.
from ember-asset-loader.
Rob and I spoke offline. I have an external addon which lazily-loads a static asset on behalf of consuming host apps. We were using ember-asset-loader's loadAsset method to achieve this. The issue brought up in this ticket exists if the host app also depends on ember-engines, which itself depends on, and extends from, ember-asset-loader and therefore produces its own manifest.
In short, a host app with an engine which also brings in an external addon with ember-asset-loader will result in a fatal error.
We have decided that, for the time being, we will do our own simple script loading in our addon and remove ember-asset-loader as a dependency. Potentially in the near future we can modify ember-asset-loader to allow for loading of an asset without a manifest.
from ember-asset-loader.
Related Issues (20)
- CI/tests failing HOT 2
- Ember Asset loader does not take rootURL into consideration HOT 6
- Need file order in configuration. HOT 6
- assetLoader Service is required in host route and component unit tests HOT 3
- Weird fingerprinting of images HOT 1
- How use contentFor in engines HOT 2
- manifest-inserter causes index.html to show up as changed on every rebuild HOT 21
- Should not include empty files in generated asset manifest. HOT 3
- Add template helper for loading a bundle. HOT 21
- Support for loading non-engines assets lazily when needed. HOT 1
- Improve CI to avoid dependency drift HOT 2
- On Windows, engine asset paths use back slashes instead of forward slashes HOT 7
- CSS asset loader, `onload` event called too soon. (can only repro on firefox) HOT 3
- Need an option to add Subresource Integrity(SRI) in engine assets HOT 1
- The loader when in node land does nothing, can we teach it to put link/script tags in the DOM?
- option to make resetting asset state in tests less noisy HOT 3
- Multiple meta tags inserted into head-footer when multiple addons use ManifestGenerator HOT 1
- Repeatedly performing npm-install fails with EISGIT: Appears to be a git repo or submodule HOT 3
- API request: the ability to retrieve the list of assets loaded/in the cache HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-asset-loader.