vue-cli-service build code example
Example 1: vue-cli-service
npm i -g @vue/cli-service
Example 2: vue specify build directory
// vue.config.js
const path = require("path");
module.exports = {
outputDir: path.resolve(__dirname, "../public/")
}