quasar.conf.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. 'QInput',
  38. 'QIcon',
  39. 'QSelect',
  40. 'QList',
  41. 'QItem',
  42. 'QItemSection',
  43. 'QItemLabel',
  44. 'QCard',
  45. 'QCardSection',
  46. 'QCardActions',
  47. 'QCarousel',
  48. 'QCarouselControl',
  49. 'QCarouselSlide',
  50. 'QSeparator',
  51. 'QAvatar'
  52. ],
  53. directives: [
  54. 'TouchSwipe',
  55. 'Ripple'
  56. ],
  57. // Quasar plugins
  58. plugins: [
  59. 'Notify'
  60. ]
  61. // iconSet: 'ionicons-v4'
  62. // lang: 'de' // Quasar language
  63. },
  64. supportIE: false,
  65. build: {
  66. env: ctx.dev
  67. ? { // so on dev we'll have
  68. API: JSON.stringify('http://47.92.238.200:10015/v1/')
  69. // API: JSON.stringify('http://.238.200:8022')
  70. }
  71. : { // and on build (production):
  72. API: JSON.stringify('http://47.92.238.200:10015/v1/')
  73. },
  74. scopeHoisting: true,
  75. // vueRouterMode: 'history',
  76. // vueCompiler: true,
  77. // gzip: true,
  78. // analyze: true,
  79. // extractCSS: false,
  80. extendWebpack (cfg) {
  81. cfg.module.rules.push({
  82. enforce: 'pre',
  83. test: /\.(js|vue)$/,
  84. loader: 'eslint-loader',
  85. exclude: /node_modules/
  86. }),
  87. cfg.resolve.alias = {
  88. ...cfg.resolve.alias, // This adds the existing alias
  89. // Add you own alias like this
  90. '@': resolve('src')
  91. }
  92. }
  93. },
  94. devServer: {
  95. // https: true,
  96. // port: 8080,
  97. open: true // opens browser window automatically
  98. },
  99. // animations: 'all', // --- includes all animations
  100. animations: [],
  101. ssr: {
  102. pwa: false
  103. },
  104. pwa: {
  105. // workboxPluginMode: 'InjectManifest',
  106. // workboxOptions: {}, // only for NON InjectManifest
  107. manifest: {
  108. // name: 'Quasar App',
  109. // short_name: 'Quasar-PWA',
  110. // description: 'Best PWA App in town!',
  111. display: 'standalone',
  112. orientation: 'portrait',
  113. background_color: '#ffffff',
  114. theme_color: '#027be3',
  115. icons: [
  116. {
  117. 'src': 'statics/icons/icon-128x128.png',
  118. 'sizes': '128x128',
  119. 'type': 'image/png'
  120. },
  121. {
  122. 'src': 'statics/icons/icon-192x192.png',
  123. 'sizes': '192x192',
  124. 'type': 'image/png'
  125. },
  126. {
  127. 'src': 'statics/icons/icon-256x256.png',
  128. 'sizes': '256x256',
  129. 'type': 'image/png'
  130. },
  131. {
  132. 'src': 'statics/icons/icon-384x384.png',
  133. 'sizes': '384x384',
  134. 'type': 'image/png'
  135. },
  136. {
  137. 'src': 'statics/icons/icon-512x512.png',
  138. 'sizes': '512x512',
  139. 'type': 'image/png'
  140. }
  141. ]
  142. }
  143. },
  144. cordova: {
  145. // id: 'org.cordova.quasar.app'
  146. // noIosLegacyBuildFlag: true // uncomment only if you know what you are doing
  147. },
  148. electron: {
  149. // bundler: 'builder', // or 'packager'
  150. extendWebpack (cfg) {
  151. // do something with Electron main process Webpack cfg
  152. // chainWebpack also available besides this extendWebpack
  153. },
  154. packager: {
  155. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  156. // OS X / Mac App Store
  157. // appBundleId: '',
  158. // appCategoryType: '',
  159. // osxSign: '',
  160. // protocol: 'myapp://path',
  161. // Window only
  162. // win32metadata: { ... }
  163. },
  164. builder: {
  165. // https://www.electron.build/configuration/configuration
  166. // appId: 'quasar-app'
  167. }
  168. }
  169. }
  170. }