ember-cli-lazy-load icon indicating copy to clipboard operation
ember-cli-lazy-load copied to clipboard

Better solution for <meta> tag in index.js

Open B-Stefan opened this issue 9 years ago • 3 comments

Currently, we insert the a <meta> tag in the index.js file to pass the asset-map to the application.
This is necessary to support the fingerprint addon but if anybody know a better way to pass information from the build step to the application please let me know.

B-Stefan avatar Jan 15 '16 09:01 B-Stefan

AssetRev could potentially also modify the output of config/environment that include the information fo the bundles if the bundle data includes something that looks like a path. Like assets/bundle.js instead of just the bundle-name.

MiguelMadero avatar Mar 23 '16 19:03 MiguelMadero

Yep, that'd be a much better path - especially considering the Ember team themselves are also looking at now embedding config in index.html themselves too.

duizendnegen avatar Mar 23 '16 21:03 duizendnegen

embedding config in index.html themselves too.

That works already if you set storeConfigInMeta: true on your cli-build

MiguelMadero avatar Mar 24 '16 00:03 MiguelMadero