quasar.conf.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // Configuration for your app
  2. // https://quasar.dev/quasar-cli/quasar-conf-js
  3. const path = require(`path`)
  4. module.exports = function (ctx) {
  5. return {
  6. // app boot file (/src/boot)
  7. // --> boot files are part of "main.js"
  8. // https://quasar.dev/quasar-cli/cli-documentation/boot-files
  9. boot: [
  10. ],
  11. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
  12. css: [
  13. 'app.sass'
  14. ],
  15. // https://github.com/quasarframework/quasar/tree/dev/extras
  16. extras: [
  17. // 'ionicons-v4',
  18. // 'mdi-v4',
  19. // 'fontawesome-v5',
  20. // 'eva-icons',
  21. // 'themify',
  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. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  27. framework: {
  28. // iconSet: 'ionicons-v4', // Quasar icon set
  29. // lang: 'de', // Quasar language pack
  30. // Possible values for "all":
  31. // * 'auto' - Auto-import needed Quasar components & directives
  32. // (slightly higher compile time; next to minimum bundle size; most convenient)
  33. // * false - Manually specify what to import
  34. // (fastest compile time; minimum bundle size; most tedious)
  35. // * true - Import everything from Quasar
  36. // (not treeshaking Quasar; biggest bundle size; convenient)
  37. all: 'auto',
  38. components: [],
  39. directives: [],
  40. // Quasar plugins
  41. plugins: []
  42. },
  43. // https://quasar.dev/quasar-cli/cli-documentation/supporting-ie
  44. supportIE: true,
  45. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
  46. build: {
  47. scopeHoisting: true,
  48. // vueRouterMode: 'history',
  49. // showProgress: false,
  50. // gzip: true,
  51. // analyze: true,
  52. // preloadChunks: false,
  53. // extractCSS: false,
  54. // https://quasar.dev/quasar-cli/cli-documentation/handling-webpack
  55. extendWebpack (cfg) {
  56. cfg.module.rules.push({
  57. enforce: 'pre',
  58. test: /\.(js|vue)$/,
  59. loader: 'eslint-loader',
  60. exclude: /node_modules/,
  61. options: {
  62. formatter: require('eslint').CLIEngine.getFormatter('stylish')
  63. }
  64. })
  65. },
  66. chainWebpack (chain) {
  67. require('@tauri-apps/tauri-webpack').chain(chain)
  68. }
  69. },
  70. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  71. devServer: {
  72. // https: true,
  73. port: 7334,
  74. open: false // opens browser window automatically
  75. },
  76. // animations: 'all', // --- includes all animations
  77. // https://quasar.dev/options/animations
  78. animations: [],
  79. // https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  80. ssr: {
  81. pwa: false
  82. },
  83. // https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  84. pwa: {
  85. // workboxPluginMode: 'InjectManifest',
  86. // workboxOptions: {}, // only for NON InjectManifest
  87. manifest: {
  88. // name: 'Quasar App',
  89. // short_name: 'Quasar App',
  90. // description: 'A Quasar Framework app',
  91. display: 'standalone',
  92. orientation: 'portrait',
  93. background_color: '#ffffff',
  94. theme_color: '#027be3',
  95. icons: [
  96. {
  97. 'src': 'statics/icons/icon-128x128.png',
  98. 'sizes': '128x128',
  99. 'type': 'image/png'
  100. },
  101. {
  102. 'src': 'statics/icons/icon-192x192.png',
  103. 'sizes': '192x192',
  104. 'type': 'image/png'
  105. },
  106. {
  107. 'src': 'statics/icons/icon-256x256.png',
  108. 'sizes': '256x256',
  109. 'type': 'image/png'
  110. },
  111. {
  112. 'src': 'statics/icons/icon-384x384.png',
  113. 'sizes': '384x384',
  114. 'type': 'image/png'
  115. },
  116. {
  117. 'src': 'statics/icons/icon-512x512.png',
  118. 'sizes': '512x512',
  119. 'type': 'image/png'
  120. }
  121. ]
  122. }
  123. },
  124. // https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  125. cordova: {
  126. // id: 'org.cordova.quasar.app',
  127. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  128. },
  129. // https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  130. capacitor: {
  131. // hideSplashscreen: false
  132. },
  133. // https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  134. electron: {
  135. // bundler: 'builder', // or 'packager'
  136. packager: {
  137. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  138. // OS X / Mac App Store
  139. // appBundleId: '',
  140. // appCategoryType: '',
  141. // osxSign: '',
  142. // protocol: 'myapp://path',
  143. // Windows only
  144. // win32metadata: { ... }
  145. },
  146. builder: {
  147. // https://www.electron.build/configuration/configuration
  148. // appId: 'quasar-app'
  149. },
  150. // keep in sync with /src-electron/main-process/electron-main
  151. // > BrowserWindow > webPreferences > nodeIntegration
  152. // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration
  153. nodeIntegration: true,
  154. extendWebpack (cfg) {
  155. // do something with Electron main process Webpack cfg
  156. // chainWebpack also available besides this extendWebpack
  157. }
  158. }
  159. }
  160. }