This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| quasarversion [2026/02/25 13:05] – created tim45tenwa | quasarversion [2026/02/25 13:35] (current) – tim45tenwa | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| < | < | ||
| + | import { readFileSync } from ' | ||
| + | import { URL } from ' | ||
| + | |||
| const packageJson = JSON.parse(readFileSync(new URL(' | const packageJson = JSON.parse(readFileSync(new URL(' | ||
| + | </ | ||
| + | |||
| + | and then add the following to quasar.config.ts in the build section | ||
| + | |||
| + | < | ||
| + | env: { | ||
| + | // Injecting the values | ||
| + | APP_VERSION: | ||
| + | BUILD_DATE: new Date().toISOString().split(' | ||
| + | }, | ||
| + | </ | ||
| + | |||
| + | Add the following to the pakcage.json, | ||
| + | |||
| + | < | ||
| + | " | ||
| + | " | ||
| </ | </ | ||