User Tools

Site Tools


quasarversion

This is an old revision of the document!


Quasar version bump mods

Add the following line near the top of the quasar.config.ts

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
},
quasarversion.1772024881.txt.gz · Last modified: by tim45tenwa