ember-cli-deploy-json-config icon indicating copy to clipboard operation
ember-cli-deploy-json-config copied to clipboard

Missing asset-manifest meta

Open saverio-kantox opened this issue 8 years ago • 3 comments

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.

saverio-kantox avatar Mar 15 '17 12:03 saverio-kantox

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

lukemelia avatar Mar 15 '17 14:03 lukemelia

@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.

achambers avatar Mar 16 '17 10:03 achambers

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.

saverio-kantox avatar Mar 20 '17 11:03 saverio-kantox