cab-front/quasar.config.js
2026-03-31 18:30:49 +03:00

27 lines
665 B
JavaScript

const dotenv = require('dotenv')
const { configure } = require('quasar/wrappers')
dotenv.config({ path: '.env', override: true })
module.exports = configure(function () {
return {
boot: ['axios'],
css: ['app.scss'],
extras: ['roboto-font', 'material-icons'],
build: {
target: { browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'] },
vueRouterMode: 'history',
env: {
API_BASE_URL: process.env.API_BASE_URL?.trim() || 'http://localhost:19080/api',
},
},
devServer: {
port: 9000,
open: false,
},
framework: {
plugins: ['Notify', 'Dialog', 'Loading'],
},
}
})