quasar.conf.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. // https://quasar.dev/quasar-cli/cli-documentation/boot-files
  8. boot: [
  9. ],
  10. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
  11. css: [
  12. 'app.sass'
  13. ],
  14. // https://github.com/quasarframework/quasar/tree/dev/extras
  15. extras: [
  16. // 'ionicons-v4',
  17. // 'mdi-v4',
  18. // 'fontawesome-v5',
  19. // 'eva-icons',
  20. // 'themify',
  21. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  22. 'roboto-font', // optional, you are not bound to it
  23. 'material-icons' // optional, you are not bound to it
  24. ],
  25. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  26. framework: {
  27. // iconSet: 'ionicons-v4', // Quasar icon set
  28. // lang: 'de', // Quasar language pack
  29. // Possible values for "all":
  30. // * 'auto' - Auto-import needed Quasar components & directives
  31. // (slightly higher compile time; next to minimum bundle size; most convenient)
  32. // * false - Manually specify what to import
  33. // (fastest compile time; minimum bundle size; most tedious)
  34. // * true - Import everything from Quasar
  35. // (not treeshaking Quasar; biggest bundle size; convenient)
  36. all: 'auto',
  37. components: [],
  38. directives: [],
  39. // Quasar plugins
  40. plugins: []
  41. },
  42. // https://quasar.dev/quasar-cli/cli-documentation/supporting-ie
  43. supportIE: true,
  44. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
  45. build: {
  46. scopeHoisting: true,
  47. // vueRouterMode: 'history',
  48. // showProgress: false,
  49. // gzip: true,
  50. // analyze: true,
  51. // preloadChunks: false,
  52. // extractCSS: false,
  53. // https://quasar.dev/quasar-cli/cli-documentation/handling-webpack
  54. extendWebpack (cfg) {
  55. cfg.module.rules.push({
  56. enforce: 'pre',
  57. test: /\.(js|vue)$/,
  58. loader: 'eslint-loader',
  59. exclude: /node_modules/,
  60. options: {
  61. formatter: require('eslint').CLIEngine.getFormatter('stylish')
  62. }
  63. })
  64. }
  65. },
  66. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  67. devServer: {
  68. // https: true,
  69. port: 7334,
  70. open: true // opens browser window automatically
  71. },
  72. // animations: 'all', // --- includes all animations
  73. // https://quasar.dev/options/animations
  74. animations: [],
  75. // https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  76. ssr: {
  77. pwa: false
  78. },
  79. // https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  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. // https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  121. cordova: {
  122. // id: 'org.cordova.quasar.app',
  123. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  124. },
  125. // https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  126. capacitor: {
  127. // hideSplashscreen: false
  128. },
  129. // https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  130. electron: {
  131. // bundler: 'builder', // or 'packager'
  132. packager: {
  133. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  134. // OS X / Mac App Store
  135. // appBundleId: '',
  136. // appCategoryType: '',
  137. // osxSign: '',
  138. // protocol: 'myapp://path',
  139. // Windows only
  140. // win32metadata: { ... }
  141. },
  142. builder: {
  143. // https://www.electron.build/configuration/configuration
  144. // appId: 'quasar-app'
  145. },
  146. // keep in sync with /src-electron/main-process/electron-main
  147. // > BrowserWindow > webPreferences > nodeIntegration
  148. // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration
  149. nodeIntegration: true,
  150. extendWebpack (cfg) {
  151. // do something with Electron main process Webpack cfg
  152. // chainWebpack also available besides this extendWebpack
  153. }
  154. }
  155. }
  156. }