[Vuejs]-Vue.js/Webpack – plugin.apply is not a function

0👍

My first thought is that you are missing an install method in filters.js.

http://vuejs.org/guide/plugins.html#Writing-a-Plugin

But if reverse is your only filter, you could just set it:

Vue.filter('reverse', function (value) {
    return value.split('').reverse().join('');
});

Leave a comment