Advertisement
Guest User

Untitled

a guest
May 26th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. // Configuration for your app
  2.  
  3. module.exports = function (ctx) {
  4. return {
  5. // app plugins (/src/plugins)
  6. plugins: [
  7. ],
  8. css: [
  9. 'app.styl'
  10. ],
  11. extras: [
  12. ctx.theme.mat ? 'roboto-font' : null,
  13. 'material-icons',
  14. ctx.theme.ios ? 'ionicons' : null,
  15. // 'mdi',
  16. // 'fontawesome'
  17. ],
  18. supportIE: false,
  19. build: {
  20. scopeHoisting: true,
  21. vueRouterMode: 'history',
  22. // vueCompiler: true,
  23. // gzip: true,
  24. // analyze: true,
  25. // extractCSS: false,
  26. extendWebpack (cfg) {
  27. cfg.module.rules.push({
  28. enforce: 'pre',
  29. test: /\.(js|vue)$/,
  30. loader: 'eslint-loader',
  31. exclude: /(node_modules|quasar)/
  32. })
  33. }
  34. },
  35. devServer: {
  36. // https: true,
  37. // port: 8080,
  38. open: true // opens browser window automatically
  39. },
  40. // framework: 'all' --- includes everything; for dev only!
  41. framework: {
  42. components: [
  43. 'QLayout',
  44. 'QLayoutHeader',
  45. 'QLayoutDrawer',
  46. 'QPageContainer',
  47. 'QPage',
  48. 'QToolbar',
  49. 'QToolbarTitle',
  50. 'QBtn',
  51. 'QIcon',
  52. 'QList',
  53. 'QListHeader',
  54. 'QItem',
  55. 'QItemMain',
  56. 'QItemSide'
  57. ],
  58. directives: [
  59. 'Ripple'
  60. ],
  61. // Quasar plugins
  62. plugins: [
  63. 'Notify'
  64. ],
  65. iconSet: ctx.theme.mat ? 'material-icons' : 'ionicons'
  66. },
  67. // animations: 'all' --- includes all animations
  68. animations: [
  69. ],
  70. pwa: {
  71. // workboxPluginMode: 'InjectManifest',
  72. // workboxOptions: {},
  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. // bundler: 'builder', // or 'packager'
  115. extendWebpack (cfg) {
  116. // do something with Electron process Webpack cfg
  117. },
  118. packager: {
  119. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  120.  
  121. // OS X / Mac App Store
  122. // appBundleId: '',
  123. // appCategoryType: '',
  124. // osxSign: '',
  125. // protocol: 'myapp://path',
  126.  
  127. // Window only
  128. // win32metadata: { ... }
  129. },
  130. builder: {
  131. // https://www.electron.build/configuration/configuration
  132.  
  133. // appId: 'quasar-app'
  134. }
  135. }
  136. }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement