[Vuejs]-How to deploy vuejs โ€“ express app to local Ubuntu?

0๐Ÿ‘

If you build your vue project with vue-cli 3 (which I strongly recommend), using its npm run build script will create a /dist folder with all the minified stuff you need.

Then, you just serve this folder with you express app, something like this:

const express = require('express')
const app = express()
app.use(express.static('dist'))

Leave a comment