quasar.conf.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // Configuration for your app
  2. // https://quasar.dev/quasar-cli/quasar-conf-js
  3. module.exports = function (ctx) {
  4. return {
  5. // app boot file (/src/boot)
  6. // --> boot files are part of "main.js"
  7. boot: [
  8. ],
  9. css: [
  10. 'app.styl'
  11. ],
  12. extras: [
  13. // 'ionicons-v4',
  14. // 'mdi-v3',
  15. // 'fontawesome-v5',
  16. // 'eva-icons',
  17. // 'themify',
  18. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  19. 'roboto-font', // optional, you are not bound to it
  20. 'material-icons' // optional, you are not bound to it
  21. ],
  22. framework: {
  23. // iconSet: 'ionicons-v4',
  24. // lang: 'de', // Quasar language
  25. // all: true, // --- includes everything; for dev only!
  26. components: [
  27. 'QCard',
  28. 'QExpansionItem',
  29. 'QLayout',
  30. 'QHeader',
  31. 'QDrawer',
  32. 'QPageContainer',
  33. 'QPage',
  34. 'QToolbar',
  35. 'QToolbarTitle',
  36. 'QBtn',
  37. 'QIcon',
  38. 'QList',
  39. 'QItem',
  40. 'QItemSection',
  41. 'QItemLabel',
  42. 'QPageScroller',
  43. 'QScrollArea',
  44. 'QSeparator',
  45. 'QTabs',
  46. 'QTab',
  47. 'QTabPanels',
  48. 'QTabPanel'
  49. ],
  50. directives: [
  51. 'Ripple'
  52. ],
  53. // Quasar plugins
  54. plugins: [
  55. 'Notify'
  56. ]
  57. },
  58. supportIE: true,
  59. build: {
  60. scopeHoisting: true,
  61. vueRouterMode: 'history',
  62. publicPath: 'tauri',
  63. // vueCompiler: true,
  64. // gzip: true,
  65. // analyze: true,
  66. // extractCSS: false,
  67. extendWebpack (cfg) {
  68. cfg.module.rules.push({
  69. enforce: 'pre',
  70. test: /\.(js|vue)$/,
  71. loader: 'eslint-loader',
  72. exclude: /node_modules/,
  73. options: {
  74. formatter: require('eslint').CLIEngine.getFormatter('stylish')
  75. }
  76. })
  77. }
  78. },
  79. devServer: {
  80. // https: true,
  81. // port: 8080,
  82. open: true // opens browser window automatically
  83. },
  84. // animations: 'all', // --- includes all animations
  85. animations: [],
  86. ssr: {
  87. pwa: false
  88. },
  89. pwa: {
  90. // workboxPluginMode: 'InjectManifest',
  91. // workboxOptions: {}, // only for NON InjectManifest
  92. manifest: {
  93. // name: 'Quasar App',
  94. // short_name: 'Quasar App',
  95. // description: 'A Quasar Framework app',
  96. display: 'standalone',
  97. orientation: 'portrait',
  98. background_color: '#ffffff',
  99. theme_color: '#027be3',
  100. icons: [
  101. {
  102. 'src': 'statics/icons/icon-128x128.png',
  103. 'sizes': '128x128',
  104. 'type': 'image/png'
  105. },
  106. {
  107. 'src': 'statics/icons/icon-192x192.png',
  108. 'sizes': '192x192',
  109. 'type': 'image/png'
  110. },
  111. {
  112. 'src': 'statics/icons/icon-256x256.png',
  113. 'sizes': '256x256',
  114. 'type': 'image/png'
  115. },
  116. {
  117. 'src': 'statics/icons/icon-384x384.png',
  118. 'sizes': '384x384',
  119. 'type': 'image/png'
  120. },
  121. {
  122. 'src': 'statics/icons/icon-512x512.png',
  123. 'sizes': '512x512',
  124. 'type': 'image/png'
  125. }
  126. ]
  127. }
  128. },
  129. cordova: {
  130. // id: 'org.cordova.quasar.app',
  131. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  132. },
  133. electron: {
  134. // bundler: 'builder', // or 'packager'
  135. extendWebpack (cfg) {
  136. // do something with Electron main process Webpack cfg
  137. // chainWebpack also available besides this extendWebpack
  138. },
  139. packager: {
  140. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  141. // OS X / Mac App Store
  142. // appBundleId: '',
  143. // appCategoryType: '',
  144. // osxSign: '',
  145. // protocol: 'myapp://path',
  146. // Windows only
  147. // win32metadata: { ... }
  148. },
  149. builder: {
  150. // https://www.electron.build/configuration/configuration
  151. // appId: 'docs-generator'
  152. }
  153. }
  154. }
  155. }