- COMPLETAMENTO PASSAGGIO A VITE - versione 1.2.2:

- Sistemato RefreshToken
  - Integrato modifiche di PiuCheBuono
  - Aggiornato a Node 22
  - Aggiornato Server a Mongodb 8.0.
This commit is contained in:
Surya Paolo
2025-03-10 17:20:48 +01:00
parent 5a32e057b2
commit e853fd23c2
666 changed files with 6815 additions and 7198771 deletions

View File

@@ -3,6 +3,8 @@ import { fileURLToPath } from 'node:url';
import path from 'path'
// console.log(process.env)
export default defineConfig((ctx) => {
return {
// https://v2.quasar.dev/quasar-cli/supporting-ts
@@ -121,7 +123,6 @@ export default defineConfig((ctx) => {
'statics': path.resolve(__dirname, 'src/statics'),
'components': path.resolve(__dirname, 'src/components'),
'views': path.resolve(__dirname, 'src/views/index.ts'),
'icons': path.resolve(__dirname, 'public/icons'),
'images': path.resolve(__dirname, 'src/assets/images'),
'maps': path.resolve(__dirname, 'public/maps'),
'classes': path.resolve(__dirname, 'src/classes/index.ts'),
@@ -142,7 +143,7 @@ export default defineConfig((ctx) => {
'@views': path.resolve(__dirname, 'src/views/index.ts'),
'@src': path.resolve(__dirname, 'src'),
'@css': path.resolve(__dirname, 'src/public/css/variables.scss'),
'@icons': path.resolve(__dirname, 'src/public/public/icons'),
'@icons': path.resolve(__dirname, 'src/public/public/myicons'),
'@images': path.resolve(__dirname, 'src/public/images/*'),
'@maps': path.resolve(__dirname, 'src/public/maps/*'),
'@classes': path.resolve(__dirname, 'src/classes/index.ts'),
@@ -215,7 +216,7 @@ export default defineConfig((ctx) => {
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
https: false,
port: ctx.mode.spa ? 8088 : 8098,
port: ctx.mode.spa ? 8084 : 8094,
vueDevtools: false, // automatically opening remote Vue Devtools
open: false, // opens browser window automatically
hot: true, // Disable hot module replacement
@@ -358,17 +359,11 @@ export default defineConfig((ctx) => {
],
},
sourceFiles: {
pwaRegisterServiceWorker: 'src-pwa/register-service-worker',
pwaServiceWorker: 'src-pwa/custom-service-worker',
// pwaManifestFile: 'src-pwa/manifest.json',
// ...
},
// https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
pwa: {
workboxMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest'
swFilename: process.env.VITE_SERVICE_WORKER_FILE,
swFilename: 'sw-' + "1.2.2" + '.js',
workboxOptions: {
swSrc: 'src-pwa/custom-service-worker.js', // Assicurati che il file esista
},
@@ -378,6 +373,13 @@ export default defineConfig((ctx) => {
},
},
sourceFiles: {
// DEFAULT: pwaRegisterServiceWorker: 'src-pwa/register-service-worker',
// DEFAULT: pwaServiceWorker: 'src-pwa/custom-service-worker',
// DEFAULT: pwaManifestFile: 'src-pwa/manifest.json',
// ...
},
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
cordova: {
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
@@ -408,7 +410,7 @@ export default defineConfig((ctx) => {
builder: {
// https://www.electron.build/configuration/configuration
appId: 'PiuCheBuono',
appId: 'Riso',
},