quasar.config.ts 7.3 KB

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