JDillon522
JDillon522

Reputation: 19686

Ember-CLI - triggering livereload while developing an addon

I'm developing an ember-cli addon and I'd like to know if it's possible to set up live reload to trigger whenever I make a change in my addon. As of now, I have to restart my server every time I make a change to my addon.

Upvotes: 0

Views: 606

Answers (1)

Gaurav
Gaurav

Reputation: 12806

Officially, the way to do this is to edit your index.js and add the following:

isDevelopingAddon: function() {
    return true;
},

This is documented here: http://www.ember-cli.com/extending/#link-to-addon-while-developing

This only works if you have used npm link to link your addon to your application.

Update: This may have been broken since ember-cli 0.2.7 https://github.com/ember-cli/ember-cli/issues/4289

Upvotes: 3

Related Questions