Add the following line near the top of the quasar.config.ts
import { readFileSync } from 'node:fs';
import { URL } from 'node:url';
const packageJson = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf-8'));
and then add the following to quasar.config.ts in the build section
env: {
// Injecting the values
APP_VERSION: packageJson.version,
BUILD_DATE: new Date().toISOString().split('T')[0], // Simple YYYY-MM-DD
},
Add the following to the pakcage.json, at the end of the scripts section.
"release": "npm version patch && git push origin main --tags", "build:prod": "npm run release && quasar build"
© Copyright - 2026 - Tim Evans