Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing asset-manifest meta #30

Open
saverio-kantox opened this issue Mar 15, 2017 · 3 comments
Open

Missing asset-manifest meta #30

saverio-kantox opened this issue Mar 15, 2017 · 3 comments

Comments

@saverio-kantox
Copy link

The generated index.html in build has a

<meta name="my-app/config/asset-manifest" content="%7B%22bundles%22%3A%7B%7D%7D" />

tag that is not transferred to the index.json file.

@lukemelia
Copy link
Contributor

@saverio-kantox is this being added by an addon that uses ember-asset-loader?

@achambers
Copy link
Member

achambers commented Mar 16, 2017

@saverio-kantox This is because the default selector for the meta tag doesn't match on that meta tag. eg

meta: {
  selector: 'meta[name*="/config/environment"]',
  attributes: ['name', 'content']
}

You will need to specify the jsonBlueprint config property and update that selector to also include your meta tag.

You can do this in a similar way to the example HERE where you can just update the existing default config with the correct selector that matches both meta tags.

@saverio-kantox
Copy link
Author

Indeed, I can configure it, but ember-asset-loader and ember-engines (that depends on the former) are becoming part of the standard, so it would be reasonable to have this meta added by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants