quasar.conf.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. 'QLayout',
  28. 'QHeader',
  29. 'QDrawer',
  30. 'QPageContainer',
  31. 'QPage',
  32. 'QToolbar',
  33. 'QToolbarTitle',
  34. 'QBtn',
  35. 'QIcon',
  36. 'QList',
  37. 'QItem',
  38. 'QItemSection',
  39. 'QItemLabel',
  40. 'QForm'
  41. ],
  42. directives: [
  43. 'Ripple'
  44. ],
  45. // Quasar plugins
  46. plugins: [
  47. 'Notify'
  48. ]
  49. },
  50. supportIE: false,
  51. build: {
  52. scopeHoisting: true,
  53. // vueRouterMode: 'history',
  54. // vueCompiler: true,
  55. // gzip: true,
  56. // analyze: true,
  57. // extractCSS: false,
  58. extendWebpack (cfg) {
  59. cfg.module.rules.push({
  60. enforce: 'pre',
  61. test: /\.(js|vue)$/,
  62. loader: 'eslint-loader',
  63. exclude: /node_modules/,
  64. options: {
  65. formatter: require('eslint').CLIEngine.getFormatter('stylish')
  66. }
  67. })
  68. }
  69. },
  70. devServer: {
  71. // https: true,
  72. // port: 8080,
  73. open: true // opens browser window automatically
  74. },
  75. // animations: 'all', // --- includes all animations
  76. animations: [],
  77. ssr: {
  78. pwa: true
  79. },
  80. pwa: {
  81. // workboxPluginMode: 'InjectManifest',
  82. // workboxOptions: {}, // only for NON InjectManifest
  83. manifest: {
  84. // name: 'Quasar App',
  85. // short_name: 'Quasar App',
  86. // description: 'A Quasar Framework app',
  87. display: 'standalone',
  88. orientation: 'portrait',
  89. background_color: '#ffffff',
  90. theme_color: '#027be3',
  91. icons: [
  92. {
  93. 'src': 'statics/icons/icon-128x128.png',
  94. 'sizes': '128x128',
  95. 'type': 'image/png'
  96. },
  97. {
  98. 'src': 'statics/icons/icon-192x192.png',
  99. 'sizes': '192x192',
  100. 'type': 'image/png'
  101. },
  102. {
  103. 'src': 'statics/icons/icon-256x256.png',
  104. 'sizes': '256x256',
  105. 'type': 'image/png'
  106. },
  107. {
  108. 'src': 'statics/icons/icon-384x384.png',
  109. 'sizes': '384x384',
  110. 'type': 'image/png'
  111. },
  112. {
  113. 'src': 'statics/icons/icon-512x512.png',
  114. 'sizes': '512x512',
  115. 'type': 'image/png'
  116. }
  117. ]
  118. }
  119. },
  120. tauri: {
  121. embeddedServer: { active: false },
  122. whitelist: {
  123. all: true
  124. },
  125. window: {
  126. title: 'Quasar Tauri App set by quasar.conf.js'
  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: 'embedded'
  152. }
  153. }
  154. }
  155. }