This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lintecho %SONAR_TOKEN%
setx SONAR_TOKEN <token>
set SONAR_TOKEN=<token>
sonar-scanner.bat -D"sonar.organization=phongnguyend" -D"sonar.projectKey=UIs_Vue" -D"sonar.projectName=UIs Vue" -D"sonar.projectVersion=1.0.0.0" -D"sonar.sources=." -D"sonar.host.url=https://sonarcloud.io"
- Create staticwebapp.config.json in the ./dist folder
{
"navigationFallback": {
"rewrite": "/index.html"
}
}- Install Azure Static Web Apps CLI
npm install -g @azure/static-web-apps-cli- Deploy
swa deploy ./dist --app-name vue --env production