quasar.config.js 7.9 KB

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