vue-enlargeable-image icon indicating copy to clipboard operation
vue-enlargeable-image copied to clipboard

Nuxt

Open hvitis opened this issue 3 years ago • 5 comments

Great repo! The best enlarge package out there. Thank you!

I was struggling a bit with registering on Nuxt but finally made it:

//enlarge.js
import Vue from "vue";
import EnlargeableImage from "@diracleo/vue-enlargeable-image";
Vue.config.productionTip = false;

// Globally register your component
Vue.component("enlargeable-image", EnlargeableImage);
//nuxt.config.js

/*
** Plugins to load before mounting the App
*/
plugins: [
    ...
    { src: "@/plugins/enlarge", mode: "client", ssr: false },
    ....  
],

hvitis avatar Oct 17 '20 01:10 hvitis