floranet/quasar.config.js

222 lines
6.7 KiB
JavaScript
Raw Normal View History

2023-12-11 18:19:05 +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
2024-01-03 17:18:03 +00:00
const { configure } = require("quasar/wrappers");
const path = require("path");
2023-12-11 18:19:05 +00:00
module.exports = configure(function (/* ctx */) {
return {
eslint: {
// fix: true,
// include: [],
// exclude: [],
// rawOptions: {},
warnings: true,
errors: true,
},
// https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
// preFetch: true,
// app boot file (/src/boot)
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli-vite/boot-files
2024-01-24 18:52:24 +00:00
boot: ["i18n", "axios" /* , { path: "stripe", server: false } */],
2023-12-11 18:19:05 +00:00
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
2024-01-03 17:18:03 +00:00
css: ["app.scss"],
2023-12-11 18:19:05 +00:00
// 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!
2024-01-03 17:18:03 +00:00
"roboto-font", // optional, you are not bound to it
"material-icons", // optional, you are not bound to it
2023-12-11 18:19:05 +00:00
],
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
build: {
target: {
2024-01-03 17:18:03 +00:00
browser: ["es2019", "edge88", "firefox78", "chrome87", "safari13.1"],
node: "node16",
2023-12-11 18:19:05 +00:00
},
2024-01-03 17:18:03 +00:00
vueRouterMode: "hash", // available values: 'hash', 'history'
2023-12-11 18:19:05 +00:00
// vueRouterBase,
// vueDevtools,
// vueOptionsAPI: false,
// rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
// publicPath: '/',
// analyze: true,
// env: {},
// rawDefine: {}
// ignorePublicFolder: true,
// minify: false,
// polyfillModulePreload: true,
// distDir
// extendViteConf (viteConf) {},
2024-01-03 17:18:03 +00:00
viteVuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: (tag) =>
["swiper-slide", "swiper-container"].includes(tag),
},
},
},
2023-12-11 18:19:05 +00:00
2024-01-03 17:18:03 +00:00
vitePlugins: [
[
"@intlify/vite-plugin-vue-i18n",
{
// if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
// compositionOnly: false,
// if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}',
// you need to set `runtimeOnly: false`
// runtimeOnly: false,
// you need to set i18n resource including paths !
include: path.resolve(__dirname, "./src/i18n/**"),
},
],
],
2023-12-11 18:19:05 +00:00
},
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
devServer: {
// https: true
open: true, // opens browser window automatically
},
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
framework: {
2024-01-03 17:18:03 +00:00
config: {},
2023-12-11 18:19:05 +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
2024-01-24 18:52:24 +00:00
plugins: ["Meta", "Loading", "Notify", "LocalStorage", "SessionStorage"],
2023-12-11 18:19:05 +00:00
},
// animations: 'all', // --- includes all animations
// https://v2.quasar.dev/options/animations
animations: [],
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#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-vite/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: [
2024-01-03 17:18:03 +00:00
"render", // keep this as last one
2023-12-11 18:19:05 +00:00
],
},
// https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
pwa: {
2024-01-03 17:18:03 +00:00
workboxMode: "generateSW", // or 'injectManifest'
2023-12-11 18:19:05 +00:00
injectPwaMetaTags: true,
2024-01-03 17:18:03 +00:00
swFilename: "sw.js",
manifestFilename: "manifest.json",
2023-12-11 18:19:05 +00:00
useCredentialsForManifestTag: false,
// useFilenameHashes: true,
// extendGenerateSWOptions (cfg) {}
// extendInjectManifestOptions (cfg) {},
// extendManifestJson (json) {}
// extendPWACustomSWConf (esbuildConf) {}
},
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/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-vite/developing-capacitor-apps/configuring-capacitor
capacitor: {
hideSplashscreen: true,
},
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
electron: {
// extendElectronMainConf (esbuildConf)
// extendElectronPreloadConf (esbuildConf)
inspectPort: 5858,
2024-01-03 17:18:03 +00:00
bundler: "packager", // 'packager' or 'builder'
2023-12-11 18:19:05 +00:00
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
2024-01-03 17:18:03 +00:00
appId: "floranet",
2023-12-11 18:19:05 +00:00
},
},
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
bex: {
2024-01-03 17:18:03 +00:00
contentScripts: ["my-content-script"],
2023-12-11 18:19:05 +00:00
// extendBexScriptsConf (esbuildConf) {}
// extendBexManifestJson (json) {}
},
};
});