Reputation: 75
I can see meta tag about the config information of the app can be removed from being stored in index.html through this answer.
I need the same to be done for my ember-engine. Currently, this is how my index.html looks. It contains the two meta tags: one about the engine's environment.js and the other about the asset-manifest.json.
<meta name="inventory/config/environment" content="%7B%22modulePrefix%22%3A%22inventory%22%2C%22environment%22%3A%22development%22%7D" />
<meta name="app/config/asset-manifest" content="%7B%22bundles%22%3A%7B%22inventory%22%3A%7B%22assets%22%3A%5B%5D%7D%7D%7D" />
Upvotes: 0
Views: 292
Reputation: 2459
I think your best bet here is creating an in-repo-addon because addons have access to a postprocessTree method. It's going to require getting into the Broccoli build though and messing with the html
output and I'm not sure exactly what that will look like.
ember g in-repo-addon remove-engine-config
//lib/remove-engine-config/index.js
'use strict';
module.exports = {
name: require('./package').name,
postprocessTree(type, tree) {
//console.log(type, tree)
if (type === 'html') { //just guessing on html, it could have a different name
//do some broccoli manipulation to target and remove the meta tag
return fancyBroccoli(tree);
}
}
};
I'd recommend getting familiar with VS Code and it's excelent debugger because that will let you inspect things as they come into that method, or you can just put a console.log(type, tree)
and see what shakes out to start.
Here is a good resource for getting started with Broccoli
Upvotes: 0