3
0

quasar.conf.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // Configuration for your app
  2. const path = require('path')
  3. function resolve (dir) {
  4. return path.join(__dirname, '.', dir)
  5. }
  6. module.exports = function (ctx) {
  7. return {
  8. // app boot file (/src/boot)
  9. // --> boot files are part of "main.js"
  10. boot: [
  11. 'axios',
  12. 'v-charts'
  13. ],
  14. css: [
  15. 'app.styl'
  16. ],
  17. extras: [
  18. 'roboto-font',
  19. 'material-icons' // optional, you are not bound to it
  20. // 'ionicons-v4',
  21. // 'mdi-v3',
  22. // 'fontawesome-v5',
  23. // 'eva-icons'
  24. ],
  25. framework: {
  26. // all: true, // --- includes everything; for dev only!
  27. components: [
  28. 'QPagination',
  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. 'QCard',
  43. 'QCardSection',
  44. 'QCardActions',
  45. 'QCarousel',
  46. 'QCarouselControl',
  47. 'QCarouselSlide',
  48. 'QSeparator',
  49. 'QAvatar'
  50. ],
  51. directives: [
  52. 'TouchSwipe',
  53. 'Ripple'
  54. ],
  55. // Quasar plugins
  56. plugins: [
  57. 'Notify'
  58. ]
  59. // iconSet: 'ionicons-v4'
  60. // lang: 'de' // Quasar language
  61. },
  62. supportIE: false,
  63. build: {
  64. env: ctx.dev
  65. ? { // so on dev we'll have
  66. // API: JSON.stringify('http://192.168.1.42:8022')
  67. API: JSON.stringify('http://47.92.238.200:8022')
  68. }
  69. : { // and on build (production):
  70. API: JSON.stringify('http://47.92.238.200:8022')
  71. },
  72. scopeHoisting: true,
  73. // vueRouterMode: 'history',
  74. // vueCompiler: true,
  75. // gzip: true,
  76. // analyze: true,
  77. // extractCSS: false,
  78. extendWebpack (cfg) {
  79. cfg.module.rules.push({
  80. enforce: 'pre',
  81. test: /\.(js|vue)$/,
  82. loader: 'eslint-loader',
  83. exclude: /node_modules/
  84. }),
  85. cfg.resolve.alias = {
  86. ...cfg.resolve.alias, // This adds the existing alias
  87. // Add you own alias like this
  88. '@': resolve('src')
  89. }
  90. }
  91. },
  92. devServer: {
  93. // https: true,
  94. // port: 8080,
  95. open: true // opens browser window automatically
  96. },
  97. // animations: 'all', // --- includes all animations
  98. animations: [],
  99. ssr: {
  100. pwa: false
  101. },
  102. pwa: {
  103. // workboxPluginMode: 'InjectManifest',
  104. // workboxOptions: {}, // only for NON InjectManifest
  105. manifest: {
  106. // name: 'Quasar App',
  107. // short_name: 'Quasar-PWA',
  108. // description: 'Best PWA App in town!',
  109. display: 'standalone',
  110. orientation: 'portrait',
  111. background_color: '#ffffff',
  112. theme_color: '#027be3',
  113. icons: [
  114. {
  115. 'src': 'statics/icons/icon-128x128.png',
  116. 'sizes': '128x128',
  117. 'type': 'image/png'
  118. },
  119. {
  120. 'src': 'statics/icons/icon-192x192.png',
  121. 'sizes': '192x192',
  122. 'type': 'image/png'
  123. },
  124. {
  125. 'src': 'statics/icons/icon-256x256.png',
  126. 'sizes': '256x256',
  127. 'type': 'image/png'
  128. },
  129. {
  130. 'src': 'statics/icons/icon-384x384.png',
  131. 'sizes': '384x384',
  132. 'type': 'image/png'
  133. },
  134. {
  135. 'src': 'statics/icons/icon-512x512.png',
  136. 'sizes': '512x512',
  137. 'type': 'image/png'
  138. }
  139. ]
  140. }
  141. },
  142. cordova: {
  143. // id: 'org.cordova.quasar.app'
  144. // noIosLegacyBuildFlag: true // uncomment only if you know what you are doing
  145. },
  146. electron: {
  147. // bundler: 'builder', // or 'packager'
  148. extendWebpack (cfg) {
  149. // do something with Electron main process Webpack cfg
  150. // chainWebpack also available besides this extendWebpack
  151. },
  152. packager: {
  153. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  154. // OS X / Mac App Store
  155. // appBundleId: '',
  156. // appCategoryType: '',
  157. // osxSign: '',
  158. // protocol: 'myapp://path',
  159. // Window only
  160. // win32metadata: { ... }
  161. },
  162. builder: {
  163. // https://www.electron.build/configuration/configuration
  164. // appId: 'quasar-app'
  165. }
  166. }
  167. }
  168. }