Build a vue.js app directly to your server and save time

For MacOS and Linux using “scp” — secure copy

I was always wasting time by first running “npm run build” and then open my SFTP progam to copy the vue.js “dist” folder to my server and then would be able to run it, till I spent time to find a shortcut.

Hint: Use the “scp” command on Mac and Linux

Complete package.json code is below:

Code away…