Warning
This npm package is still in production and important features may change.
Install vue-craftcms
npm install -D vue-craftcms
# yarn add -D vue-craftcms
Register the plugin on your application (usually in main.ts) and add the baseUrl to your craft cms backend
import { CraftCms } from '@vue-craftcms';
import { createApp } from 'vue';
import App from './App.vue';
const app = createApp(App);
app.use(CraftCms, {
baseUrl: 'https://backend-craftcms.ddev.site',
debug: true,
registerComponents: true,
});
app.mount('#app');
- Bugs or Feature Requests? Submit an issue.
Contributions are welcome! <3