ember.jsember-cliember-cli-addons

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.


Solution

  • 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