Git build process for vue

I would like to know that what is the principle of publising my vue project in netlify ?

Because in my git repo there is only the dev-files, but the pub server needs the builded and stripped files.

How is this supposed to be done ?

Hey there!

To deploying a Vue project to Netlify, you can follow these steps:

  1. Link your repo to Netlify
  2. Type in the build command for your project i.e.npm run build or yarn build
  3. Set the publish directory to where your build files live, in a default Vue project this is dist

If you’re using other Vue frameworks like Gridsome or Nuxt, these commands are slightly different. Sarah Drasner from my team wrote up a post about how to deploy various Vue applications that may be handy here

I hope this helps!


Thank you for your reply! this helps me to understand.

But how about different node+npm versions ? (not the packet versions) thisi gaves frequent build errors that is caused by mismatch node.
How have you solved this ?

Ah, we do have a way to help! You should set a version of node and NPM so that we always use the same one: