DEV Community

Discussion on: Vue Application as a Wordpress Plugin

Collapse
 
cmgustin profile image
Chris Gustin

That's a good question. My understanding is that Vue, npm, etc. are just build tools, which means they shouldn't be included in the final production version of a plugin if it's going to be released to the public. Typically you would have the build files on your local copy, and when you run the build command, it will create a distribution folder with everything compiled down to plain PHP/HTML/CSS/JS. That distribution folder is what you want to include with the released version of your plugin, not the build files.

If you're using Git for version control, you can tell Git to ignore the build files (npm, node_modules, Vue files, SCSS files, etc.) when you push up versions of your plugin. Those files would only live on your local copy since their sole purpose is to make the development workflow easier/faster.

Hope that helps clarify!

Collapse
 
dgmann profile image
DGMANN

Thanks Chris for your response! And your totally right :)