ember-fastboot / ember-fastboot/ember-cli-head
Production build doesn't include tags from head.hbs
- Dominant language
- JavaScript
- Stars
- 97
- Forks
- 35
- Avg merge
- 3h 3m
- Merged PRs (30d)
- 6
Description
enviroment.js
```
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'blabla',
environment: environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
},
EXTEND_PROTOTYPES: {
Date: false
}
},
APP: {
}
};
if (environment === 'test') {
ENV.locationType = 'none';
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-test';
}
return ENV;
};
```
application.js
```
import Ember from 'ember';
export default Ember.Route.extend({
headData: Ember.inject.service(),
afterModel() {
this.set('headData.rootURL', this.router.rootURL);
}
});
```
head.hbs
```
```
Everything works fine during ember server, and nothing is injected when running ember build -prod. Is it the expected behavior?
Contributor guide
Assessment
This issue has not been assessed yet.