0.0.14 • Published 1 year ago
@zuckersalzundpfeffer/gyuto-preview-plugin v0.0.14
gyuto Preview Plugin
tbd.
Installation
yarn add -D @zuckersalzundpfeffer/gyuto-preview-plugin
Register
The Preview Plugin needs to know all your regsitered and used components at runtime. Therefor it is best practise to provide a component mapping like shown in the snip.
const projectComponents = {
...somethingVeryCool
}
Vue.use(GyutoPreview, {
endpoint: "<host>",
components: projectComponents,
});
You can also import from somewhere else. egg:
import { projectLayouts, projectComponents } from "@/zsp.gyuto.js";