ember-simple-mu-resolver
v0.1.12
Published
Adds a simple mu resolver
Downloads
85
Readme
ember-simple-mu-resolver
Ember Simple Module Unification Resolver this does not resolve local components and helpers, instead this should to be used together with ember-hbs-imports
Use addon service
@service('myaddon@myservice')
initializers in init folder
in app.js
add
loadInitializers(App, config.modulePrefix + '/init');
styles in ui folder
new EmberApp({
trees: {
styles: 'app/ui/styles'
},
...
index.html in ui folder
add the following to ember-cli-build.js
const tree = new Funnel('app/ui', {
allowEmtpy: true,
include: ['index.html'],
destDir: app.name,
annotation: 'ui to index.html'
});
const toArray = app.toArray;
app.toArray = function () {
const arr = toArray.call(this);
arr.push(tree);
return arr;
};
Installation
ember install ember-simple-mu-resolver
Usage
This will automatically setup the resolver
License
This project is licensed under the MIT License.