Лучший из известных мне способов изменения index.html - это во время процесса сборки с использованием дополнения в репо.
Создайте аддон с помощью
ember generate in-repo-addon prodction-scripts
и затем в /lib/production-scripts/index.js
добавьте:
contentFor: function (type, config) {
if (type === 'head' && config.environment === 'production') {
//inline this CSS so it is parsed the fastest
return `
<script></script>
`;
}
}