My goal is to categorize my plugins into custom Vue Directives, which can be as simple as:
Vue.directive('popout', {
bind() {
$(this.el).popOut();
}
});
I want to save these directives in separate files, and then import them into either the main JS file or the Vue components using something like:
require('./directives/popout.js');
I've experimented with various export default
configurations, but I haven't been able to make it work. What would be the most effective (i.e. best practice) method for achieving this?