3
0

quasar.conf.js 4.7 KB

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