Files
bssapp/ui/quasar.config.js
2026-02-19 01:34:56 +03:00

129 lines
2.9 KiB
JavaScript

// quasar.config.js
import { defineConfig } from '#q-app/wrappers'
export default defineConfig(() => {
const apiBaseUrl = (process.env.VITE_API_BASE_URL || '/api').trim()
return {
/* =====================================================
APP INFO
===================================================== */
productName: 'Baggi BSS',
productDescription: 'Baggi Tekstil Business Support System',
/* =====================================================
BOOT FILES
===================================================== */
boot: ['dayjs'],
/* =====================================================
GLOBAL CSS
===================================================== */
css: ['app.css'],
/* =====================================================
ICONS / FONTS
===================================================== */
extras: [
'roboto-font',
'material-icons'
],
/* =====================================================
BUILD (PRODUCTION)
===================================================== */
build: {
vueRouterMode: 'hash',
env: {
VITE_API_BASE_URL: apiBaseUrl
},
esbuildTarget: {
browser: ['es2022', 'firefox115', 'chrome115', 'safari14'],
node: 'node20'
},
// Cache & performance
gzip: true,
preloadChunks: true
},
/* =====================================================
DEV SERVER (LOCAL)
===================================================== */
devServer: {
server: { type: 'http' },
port: 9000,
open: true,
// DEV proxy (CORS'suz)
proxy: [
{
context: ['/api'],
target: 'http://localhost:8080',
changeOrigin: true,
secure: false
}
]
},
/* =====================================================
QUASAR FRAMEWORK
===================================================== */
framework: {
config: {
notify: {
position: 'top',
timeout: 2500
}
},
lang: 'tr',
plugins: [
'Loading',
'Dialog',
'Notify'
]
},
animations: [],
/* =====================================================
SSR / PWA (DISABLED)
===================================================== */
ssr: {
prodPort: 3000,
middlewares: ['render'],
pwa: false
},
pwa: {
workboxMode: 'GenerateSW'
},
/* =====================================================
MOBILE / DESKTOP
===================================================== */
capacitor: {
hideSplashscreen: true
},
electron: {
preloadScripts: ['electron-preload'],
inspectPort: 5858,
bundler: 'packager',
builder: {
appId: 'baggisowtfaresystem'
}
},
bex: {
extraScripts: []
}
}
})