express-vue / express-vue

Vue rendering engine for Express.js. Use .Vue files as templates using streams
Other
1.31k stars 93 forks source link

Add support for plugins. #198

Open samuelnovaes opened 6 years ago

samuelnovaes commented 6 years ago

I want to use the Vuetify plugin in all my components. Add support for plugins like in Nuxt.js with "Vue.use"

import Vuetify from 'vuetify'

Vue.use(Vuetify, {
    theme: {
        primary: '#1976D2',
        secondary: '#424242',
        accent: '#82B1FF',
        error: '#FF5252',
        info: '#2196F3',
        success: '#4CAF50',
        warning: '#FFC107'
    }
})
danielcherubini commented 6 years ago

https://github.com/express-vue/vue-pronto/tree/feature/webpack

The core of this has a branch open for webpack support that gives this.. I don't have an ETA

mrrovot commented 6 years ago

are plugins the same as directives? is there a work around way to currently use directives?