quasar.conf.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // Configuration for your app
  2. module.exports = function (ctx) {
  3. return {
  4. // app plugins (/src/plugins)
  5. plugins: [],
  6. css: [
  7. 'app.styl'
  8. ],
  9. extras: [
  10. ctx.theme.mat ? 'roboto-font' : null,
  11. 'material-icons'
  12. // 'ionicons',
  13. // 'mdi',
  14. // 'fontawesome'
  15. ],
  16. supportIE: false,
  17. vendor: {
  18. add: [],
  19. remove: []
  20. },
  21. build: {
  22. scopeHoisting: true,
  23. vueRouterMode: 'history',
  24. // gzip: true,
  25. // analyze: true,
  26. // extractCSS: false,
  27. // useNotifier: false,
  28. extendWebpack(cfg) {
  29. }
  30. },
  31. devServer: {
  32. // https: true,
  33. port: 8069,
  34. proxy: {
  35. // proxy all requests starting with /api to jsonplaceholder
  36. '/api': {
  37. target: 'http://localhost:8080',
  38. changeOrigin: true,
  39. }
  40. },
  41. open: true // opens browser window automatically
  42. },
  43. // framework: 'all' --- includes everything; for dev only!
  44. framework: {
  45. components: [
  46. 'QLayout',
  47. 'QLayoutHeader',
  48. 'QLayoutDrawer',
  49. 'QPageContainer',
  50. 'QPage',
  51. 'QToolbar',
  52. 'QToolbarTitle',
  53. 'QBtn',
  54. 'QIcon',
  55. 'QList',
  56. 'QListHeader',
  57. 'QItem',
  58. 'QItemMain',
  59. 'QItemSide'
  60. ],
  61. directives: [
  62. 'Ripple'
  63. ],
  64. // Quasar plugins
  65. plugins: [
  66. 'Notify'
  67. ]
  68. },
  69. // animations: 'all' --- includes all animations
  70. animations: [],
  71. pwa: {
  72. cacheExt: 'js,html,css,ttf,eot,otf,woff,woff2,json,svg,gif,jpg,jpeg,png,wav,ogg,webm,flac,aac,mp4,mp3',
  73. manifest: {
  74. // name: 'Quasar App',
  75. // short_name: 'Quasar-PWA',
  76. // description: 'Best PWA App in town!',
  77. display: 'standalone',
  78. orientation: 'portrait',
  79. background_color: '#ffffff',
  80. theme_color: '#027be3',
  81. icons: [
  82. {
  83. 'src': 'statics/icons/icon-128x128.png',
  84. 'sizes': '128x128',
  85. 'type': 'image/png'
  86. },
  87. {
  88. 'src': 'statics/icons/icon-192x192.png',
  89. 'sizes': '192x192',
  90. 'type': 'image/png'
  91. },
  92. {
  93. 'src': 'statics/icons/icon-256x256.png',
  94. 'sizes': '256x256',
  95. 'type': 'image/png'
  96. },
  97. {
  98. 'src': 'statics/icons/icon-384x384.png',
  99. 'sizes': '384x384',
  100. 'type': 'image/png'
  101. },
  102. {
  103. 'src': 'statics/icons/icon-512x512.png',
  104. 'sizes': '512x512',
  105. 'type': 'image/png'
  106. }
  107. ]
  108. }
  109. },
  110. cordova: {
  111. // id: 'org.cordova.quasar.app'
  112. },
  113. electron: {
  114. extendWebpack(cfg) {
  115. // do something with cfg
  116. },
  117. packager: {
  118. // OS X / Mac App Store
  119. // appBundleId: '',
  120. // appCategoryType: '',
  121. // osxSign: '',
  122. // protocol: 'myapp://path',
  123. // Window only
  124. // win32metadata: { ... }
  125. }
  126. },
  127. // leave this here for Quasar CLI
  128. starterKit: '1.0.0'
  129. }
  130. }