quasar.config.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /* eslint-env node */
  2. // Configuration for your app
  3. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js
  4. import { defineConfig } from "#q-app/wrappers";
  5. import { fileURLToPath } from "node:url";
  6. export default defineConfig((ctx) => {
  7. return {
  8. // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
  9. // preFetch: true,
  10. // app boot file (/src/boot)
  11. // --> boot files are part of "main.js"
  12. // https://v2.quasar.dev/quasar-cli-vite/boot-files
  13. boot: [
  14. "axios",
  15. "i18n",
  16. "defaultPropsComponents",
  17. // "socket.io",
  18. ],
  19. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
  20. css: ["app.scss"],
  21. // https://github.com/quasarframework/quasar/tree/dev/extras
  22. extras: [
  23. // 'ionicons-v4',
  24. "mdi-v7",
  25. // 'fontawesome-v6',
  26. // 'eva-icons',
  27. // 'themify',
  28. // "line-awesome",
  29. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  30. "roboto-font", // optional, you are not bound to it
  31. "material-icons", // optional, you are not bound to it
  32. ],
  33. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
  34. build: {
  35. target: {
  36. browser: ["es2022", "firefox115", "chrome115", "safari14"],
  37. node: "node22",
  38. },
  39. vueRouterMode: "history", // available values: 'hash', 'history'
  40. // vueRouterBase,
  41. // vueDevtools,
  42. // vueOptionsAPI: false,
  43. // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
  44. // publicPath: '/',
  45. // analyze: true,
  46. env: {
  47. APP_NAME: "ginastica-franchisor",
  48. API_URL: ctx.dev ? "http://localhost:8000" : "https://api-gc.softpar.inf.br",
  49. PASSWORD: ctx.dev ? "S@ft2080." : "",
  50. WEBSOCKET_API: ctx.dev
  51. ? "http://localhost:4321/"
  52. : "http://localhost:4321/",
  53. WEBSOCKET_PATH: ctx.dev ? "/socket.io" : "/socket.io",
  54. WEBSOCKET_ROOM: ctx.dev ? "LARAVEL" : "LARAVEL",
  55. WEBSOCKET_API_KEY:
  56. "7wArC/kl0nTbt4zBu0agw.NXLyjA96I6x1XmBcuokwPqfo3/CIxzqYw.PTthh5eqa08Uf4ubFlOqatpShoz1CRRID9pZReEFvBk3il6E9u",
  57. },
  58. // rawDefine: {}
  59. // ignorePublicFolder: true,
  60. // minify: false,
  61. // polyfillModulePreload: true,
  62. // distDir
  63. // extendViteConf (viteConf) {},
  64. // viteVuePluginOptions: {},
  65. vitePlugins: [
  66. [
  67. "@intlify/unplugin-vue-i18n/vite",
  68. {
  69. include: [fileURLToPath(new URL("./src/i18n", import.meta.url))],
  70. ssr: ctx.modeName === "ssr",
  71. },
  72. ],
  73. [
  74. "vite-plugin-checker",
  75. {
  76. eslint: {
  77. lintCommand:
  78. 'eslint -c ./eslint.config.js "./src*/**/*.{js,mjs,cjs,vue}"',
  79. useFlatConfig: true,
  80. },
  81. },
  82. { server: false },
  83. ],
  84. ],
  85. },
  86. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
  87. devServer: {
  88. // https: true
  89. open: true, // opens browser window automatically
  90. },
  91. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
  92. framework: {
  93. lang: "pt-BR",
  94. config: {
  95. dark: "auto",
  96. notify: {
  97. position: "top-right",
  98. },
  99. },
  100. // iconSet: 'material-icons', // Quasar icon set
  101. // lang: 'en-US', // Quasar language pack
  102. // For special cases outside of where the auto-import strategy can have an impact
  103. // (like functional components as one of the examples),
  104. // you can manually specify Quasar components/directives to be available everywhere:
  105. //
  106. // components: [],
  107. // directives: [],
  108. // Quasar plugins
  109. plugins: ["Dialog", "Notify", "Loading", "Cookies", "Dark"],
  110. },
  111. // animations: 'all', // --- includes all animations
  112. // https://v2.quasar.dev/options/animations
  113. animations: [],
  114. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles
  115. // sourceFiles: {
  116. // rootComponent: 'src/App.vue',
  117. // router: 'src/router/index',
  118. // store: 'src/store/index',
  119. // pwaRegisterServiceWorker: 'src-pwa/register-service-worker',
  120. // pwaServiceWorker: 'src-pwa/custom-service-worker',
  121. // pwaManifestFile: 'src-pwa/manifest.json',
  122. // electronMain: 'src-electron/electron-main',
  123. // electronPreload: 'src-electron/electron-preload'
  124. // bexManifestFile: 'src-bex/manifest.json
  125. // },
  126. // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
  127. ssr: {
  128. prodPort: 3000, // The default port that the production server should use
  129. // (gets superseded if process.env.PORT is specified at runtime)
  130. middlewares: [
  131. "render", // keep this as last one
  132. ],
  133. // extendPackageJson (json) {},
  134. // extendSSRWebserverConf (esbuildConf) {},
  135. // manualStoreSerialization: true,
  136. // manualStoreSsrContextInjection: true,
  137. // manualStoreHydration: true,
  138. // manualPostHydrationTrigger: true,
  139. pwa: false,
  140. // pwaOfflineHtmlFilename: 'offline.html', // do NOT use index.html as name!
  141. // will mess up SSR
  142. // pwaExtendGenerateSWOptions (cfg) {},
  143. // pwaExtendInjectManifestOptions (cfg) {}
  144. },
  145. // https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
  146. pwa: {
  147. workboxMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
  148. // swFilename: 'sw.js',
  149. // manifestFilename: 'manifest.json'
  150. // extendManifestJson (json) {},
  151. // useCredentialsForManifestTag: true,
  152. // injectPwaMetaTags: false,
  153. // extendPWACustomSWConf (esbuildConf) {},
  154. // extendGenerateSWOptions (cfg) {},
  155. // extendInjectManifestOptions (cfg) {}
  156. },
  157. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
  158. cordova: {
  159. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  160. },
  161. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
  162. capacitor: {
  163. hideSplashscreen: true,
  164. },
  165. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
  166. electron: {
  167. // extendElectronMainConf (esbuildConf) {},
  168. // extendElectronPreloadConf (esbuildConf) {},
  169. // extendPackageJson (json) {},
  170. // Electron preload scripts (if any) from /src-electron, WITHOUT file extension
  171. preloadScripts: ["electron-preload"],
  172. // specify the debugging port to use for the Electron app when running in development mode
  173. inspectPort: 5858,
  174. bundler: "packager", // 'packager' or 'builder'
  175. packager: {
  176. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  177. // OS X / Mac App Store
  178. // appBundleId: '',
  179. // appCategoryType: '',
  180. // osxSign: '',
  181. // protocol: 'myapp://path',
  182. // Windows only
  183. // win32metadata: { ... }
  184. },
  185. builder: {
  186. // https://www.electron.build/configuration/configuration
  187. appId: "quasar-skeleton",
  188. },
  189. },
  190. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
  191. bex: {
  192. // extendBexScriptsConf (esbuildConf) {},
  193. // extendBexManifestJson (json) {},
  194. contentScripts: ["my-content-script"],
  195. },
  196. };
  197. });