utility scan explorer
install node check version(Exp: v18.0)
node -v
install npm check version(Exp: v8.6.0)
npm -v
install vue3.2 check version(Exp: v5.0.8)
vue --version
npm install dependencies
npm install
execute in the project directory
npm run dev
Build production
npm run build
Preview the release environment effects
npm run preview
Preview the release environment effects, Static resource analysis
npm run preview -- --report
format check & fix
npm run lint -- --fix
Delete node modules from the project directory
npm cache clean (choosable)
npm i --legacy-peer-deps
default
VITE_API_BASE_URL= 'http://localhost:8080'
operation
VITE_API_BASE_URL= 'http://your ip: your port'
{
mode: 'development',
server: {
open: true, // Whether to open by default after startup
open: false,
fs: {
strict: true,
},
host: '0.0.0.0', // Add host configuration to expose ip access via LAN
}