2022-12-20 11:00:36 +00:00
|
|
|
/* eslint-env node */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
|
|
|
|
* the ES6 features that are supported by your Node version. https://node.green/
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Configuration for your app
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js
|
|
|
|
|
|
|
|
const { configure } = require('quasar/wrappers');
|
2023-03-08 08:40:44 +00:00
|
|
|
const VueI18nPlugin = require('@intlify/unplugin-vue-i18n/vite');
|
2022-12-20 11:00:36 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = configure(function (/* ctx */) {
|
|
|
|
return {
|
|
|
|
eslint: {
|
|
|
|
// fix: true,
|
|
|
|
// include = [],
|
|
|
|
// exclude = [],
|
|
|
|
// rawOptions = {},
|
|
|
|
warnings: true,
|
|
|
|
errors: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/prefetch-feature
|
|
|
|
// preFetch: true,
|
|
|
|
|
|
|
|
// app boot file (/src/boot)
|
|
|
|
// --> boot files are part of "main.js"
|
|
|
|
// https://v2.quasar.dev/quasar-cli/boot-files
|
2024-05-14 08:41:28 +00:00
|
|
|
boot: ['i18n', 'axios', 'vnDate', 'validations', 'quasar', 'quasar.defaults'],
|
2022-12-20 11:00:36 +00:00
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
|
|
|
|
css: ['app.scss'],
|
|
|
|
|
|
|
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
|
|
|
extras: [
|
|
|
|
// 'ionicons-v4',
|
|
|
|
// 'mdi-v5',
|
|
|
|
// 'fontawesome-v6',
|
|
|
|
// 'eva-icons',
|
|
|
|
// 'themify',
|
|
|
|
// 'line-awesome',
|
|
|
|
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
|
|
|
|
|
|
|
|
'roboto-font',
|
|
|
|
'material-icons-outlined',
|
|
|
|
'material-symbols-outlined',
|
|
|
|
],
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
|
|
|
|
build: {
|
|
|
|
target: {
|
|
|
|
browser: ['es2022', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
|
|
|
|
node: 'node18',
|
|
|
|
},
|
2024-07-08 10:22:02 +00:00
|
|
|
|
2022-12-20 11:00:36 +00:00
|
|
|
vueRouterMode: 'hash', // available values: 'hash', 'history'
|
|
|
|
// vueRouterBase,
|
|
|
|
// vueDevtools,
|
|
|
|
// vueOptionsAPI: false,
|
|
|
|
|
|
|
|
// rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
|
|
|
|
|
|
|
|
// publicPath: '/',
|
|
|
|
// analyze: true,
|
|
|
|
// env: {},
|
2023-11-22 11:40:12 +00:00
|
|
|
rawDefine: {
|
2024-03-01 08:45:17 +00:00
|
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
2023-11-22 11:40:12 +00:00
|
|
|
},
|
2022-12-20 11:00:36 +00:00
|
|
|
// ignorePublicFolder: true,
|
|
|
|
// minify: false,
|
|
|
|
// polyfillModulePreload: true,
|
|
|
|
// distDir
|
|
|
|
|
2023-01-04 06:54:52 +00:00
|
|
|
extendViteConf(viteConf) {
|
|
|
|
// FIXME: Delete deprecated property polyfillModulePreload
|
|
|
|
// that is set by Quasar by default
|
|
|
|
delete viteConf.build.polyfillModulePreload;
|
|
|
|
viteConf.build.modulePreload = {
|
|
|
|
polyfill: false,
|
|
|
|
};
|
|
|
|
},
|
2022-12-20 11:00:36 +00:00
|
|
|
// viteVuePluginOptions: {},
|
|
|
|
|
2022-12-20 13:01:58 +00:00
|
|
|
alias: {
|
|
|
|
composables: path.join(__dirname, './src/composables'),
|
|
|
|
filters: path.join(__dirname, './src/filters'),
|
|
|
|
},
|
|
|
|
|
2022-12-20 11:00:36 +00:00
|
|
|
vitePlugins: [
|
|
|
|
[
|
2023-12-01 12:57:48 +00:00
|
|
|
VueI18nPlugin({
|
2024-03-01 08:45:17 +00:00
|
|
|
runtimeOnly: false,
|
2024-04-02 12:12:01 +00:00
|
|
|
include: [
|
|
|
|
path.resolve(__dirname, './src/i18n/locale/**'),
|
|
|
|
path.resolve(__dirname, './src/pages/**/locale/**'),
|
|
|
|
],
|
2023-12-01 12:57:48 +00:00
|
|
|
}),
|
2022-12-20 11:00:36 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
|
|
|
|
devServer: {
|
|
|
|
server: {
|
|
|
|
type: 'http',
|
|
|
|
},
|
|
|
|
proxy: {
|
|
|
|
'/api': {
|
|
|
|
target: 'http://0.0.0.0:3000',
|
|
|
|
logLevel: 'debug',
|
|
|
|
changeOrigin: true,
|
|
|
|
secure: false,
|
|
|
|
},
|
|
|
|
},
|
2024-03-25 13:33:32 +00:00
|
|
|
open: false,
|
2022-12-20 11:00:36 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
|
|
|
|
framework: {
|
|
|
|
config: {
|
|
|
|
config: {
|
|
|
|
dark: 'auto',
|
|
|
|
},
|
|
|
|
},
|
2022-12-20 11:30:25 +00:00
|
|
|
lang: 'en-GB',
|
2022-12-20 11:00:36 +00:00
|
|
|
|
|
|
|
// iconSet: 'material-icons', // Quasar icon set
|
|
|
|
// lang: 'en-US', // Quasar language pack
|
|
|
|
|
|
|
|
// For special cases outside of where the auto-import strategy can have an impact
|
|
|
|
// (like functional components as one of the examples),
|
|
|
|
// you can manually specify Quasar components/directives to be available everywhere:
|
|
|
|
//
|
|
|
|
// components: [],
|
|
|
|
// directives: [],
|
|
|
|
|
|
|
|
// Quasar plugins
|
|
|
|
plugins: ['Notify', 'Dialog'],
|
2023-04-11 11:31:03 +00:00
|
|
|
all: 'auto',
|
|
|
|
autoImportComponentCase: 'pascal',
|
2022-12-20 11:00:36 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// animations: 'all', // --- includes all animations
|
|
|
|
// https://v2.quasar.dev/options/animations
|
|
|
|
animations: [],
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles
|
|
|
|
// sourceFiles: {
|
|
|
|
// rootComponent: 'src/App.vue',
|
|
|
|
// router: 'src/router/index',
|
|
|
|
// store: 'src/store/index',
|
|
|
|
// registerServiceWorker: 'src-pwa/register-service-worker',
|
|
|
|
// serviceWorker: 'src-pwa/custom-service-worker',
|
|
|
|
// pwaManifestFile: 'src-pwa/manifest.json',
|
|
|
|
// electronMain: 'src-electron/electron-main',
|
|
|
|
// electronPreload: 'src-electron/electron-preload'
|
|
|
|
// },
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr
|
|
|
|
ssr: {
|
|
|
|
// ssrPwaHtmlFilename: 'offline.html', // do NOT use index.html as name!
|
|
|
|
// will mess up SSR
|
|
|
|
|
|
|
|
// extendSSRWebserverConf (esbuildConf) {},
|
|
|
|
// extendPackageJson (json) {},
|
|
|
|
|
|
|
|
pwa: false,
|
|
|
|
|
|
|
|
// manualStoreHydration: true,
|
|
|
|
// manualPostHydrationTrigger: true,
|
|
|
|
|
|
|
|
prodPort: 3000, // The default port that the production server should use
|
|
|
|
// (gets superseded if process.env.PORT is specified at runtime)
|
|
|
|
|
|
|
|
middlewares: [
|
|
|
|
'render', // keep this as last one
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
|
|
|
|
pwa: {
|
|
|
|
workboxMode: 'generateSW', // or 'injectManifest'
|
|
|
|
injectPwaMetaTags: true,
|
|
|
|
swFilename: 'sw.js',
|
|
|
|
manifestFilename: 'manifest.json',
|
|
|
|
useCredentialsForManifestTag: false,
|
|
|
|
// useFilenameHashes: true,
|
|
|
|
// extendGenerateSWOptions (cfg) {}
|
|
|
|
// extendInjectManifestOptions (cfg) {},
|
|
|
|
// extendManifestJson (json) {}
|
|
|
|
// extendPWACustomSWConf (esbuildConf) {}
|
|
|
|
},
|
|
|
|
|
|
|
|
// 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
|
|
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
|
|
|
|
capacitor: {
|
|
|
|
hideSplashscreen: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
|
|
|
|
electron: {
|
|
|
|
// extendElectronMainConf (esbuildConf)
|
|
|
|
// extendElectronPreloadConf (esbuildConf)
|
|
|
|
|
|
|
|
inspectPort: 5858,
|
|
|
|
|
|
|
|
bundler: 'packager', // 'packager' or 'builder'
|
|
|
|
|
|
|
|
packager: {
|
|
|
|
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
|
|
|
|
// OS X / Mac App Store
|
|
|
|
// appBundleId: '',
|
|
|
|
// appCategoryType: '',
|
|
|
|
// osxSign: '',
|
|
|
|
// protocol: 'myapp://path',
|
|
|
|
// Windows only
|
|
|
|
// win32metadata: { ... }
|
|
|
|
},
|
|
|
|
|
|
|
|
builder: {
|
|
|
|
// https://www.electron.build/configuration/configuration
|
|
|
|
|
|
|
|
appId: 'salix-frontend',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
|
|
|
|
bex: {
|
|
|
|
contentScripts: ['my-content-script'],
|
|
|
|
|
|
|
|
// extendBexScriptsConf (esbuildConf) {}
|
|
|
|
// extendBexManifestJson (json) {}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
});
|