A quick way to get up and running with a Vue-based WordPress plugin
wp-content/plugins
directoryvwp-plugin.php
and the files inside of the inc/
directory to suite your needs.vwp-plugin
, vwp_plugin
and VwpPlugin
with your own namespacing.npm install
npm run watch
for developmentnpm run build
when you're ready to deploy the plugin.templates/admin/index.php
is the base PHP template for the plugin settings UI. It has an element <div id="vwp-plugin"></div>
where the Vue app is getting mounted.src/vue/App.vue
.