122 lines
2.8 KiB
JavaScript
122 lines
2.8 KiB
JavaScript
// quasar.config.js
|
||
import { defineConfig } from '#q-app/wrappers'
|
||
|
||
export default defineConfig(() => {
|
||
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',
|
||
|
||
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: {
|
||
'/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: []
|
||
}
|
||
}
|
||
})
|