quasar.conf.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /* eslint-env node */
  2. /*
  3. * This file runs in a Node context (it's NOT transpiled by Babel), so use only
  4. * the ES6 features that are supported by your Node version. https://node.green/
  5. */
  6. // Configuration for your app
  7. // https://v1.quasar.dev/quasar-cli/quasar-conf-js
  8. const ESLintPlugin = require('eslint-webpack-plugin')
  9. module.exports = function (/* ctx */) {
  10. return {
  11. // https://v1.quasar.dev/quasar-cli/supporting-ts
  12. supportTS: false,
  13. // https://v1.quasar.dev/quasar-cli/prefetch-feature
  14. // preFetch: true,
  15. // app boot file (/src/boot)
  16. // --> boot files are part of "main.js"
  17. // https://v1.quasar.dev/quasar-cli/boot-files
  18. boot: [
  19. 'db', 'jsonedit'
  20. ],
  21. // https://v1.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
  22. css: [
  23. 'app.styl'
  24. ],
  25. // https://github.com/quasarframework/quasar/tree/dev/extras
  26. extras: [
  27. // 'ionicons-v4',
  28. // 'mdi-v5',
  29. // 'fontawesome-v6',
  30. // 'eva-icons',
  31. // 'themify',
  32. // 'line-awesome',
  33. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  34. 'roboto-font', // optional, you are not bound to it
  35. 'material-icons' // optional, you are not bound to it
  36. ],
  37. // Full list of options: https://v1.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
  38. build: {
  39. vueRouterMode: 'hash', // available values: 'hash', 'history'
  40. // transpile: false,
  41. // Add dependencies for transpiling with Babel (Array of string/regex)
  42. // (from node_modules, which are by default not transpiled).
  43. // Applies only if "transpile" is set to true.
  44. // transpileDependencies: [],
  45. // rtl: false, // https://v1.quasar.dev/options/rtl-support
  46. // preloadChunks: true,
  47. // showProgress: false,
  48. // gzip: true,
  49. // analyze: true,
  50. // Options below are automatically set depending on the env, set them if you want to override
  51. // extractCSS: false,
  52. // https://v1.quasar.dev/quasar-cli/handling-webpack
  53. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  54. chainWebpack (chain) {
  55. chain.plugin('eslint-webpack-plugin')
  56. .use(ESLintPlugin, [{ extensions: ['js', 'vue'] }])
  57. }
  58. },
  59. // Full list of options: https://v1.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  60. devServer: {
  61. https: false,
  62. port: 8080,
  63. open: true // opens browser window automatically
  64. },
  65. // https://v1.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  66. framework: {
  67. iconSet: 'material-icons', // Quasar icon set
  68. lang: 'en-us', // Quasar language pack
  69. // Possible values for "importStrategy":
  70. // * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives
  71. // * 'all' - Manually specify what to import
  72. importStrategy: 'auto',
  73. // For special cases outside of where "auto" importStrategy can have an impact
  74. // (like functional components as one of the examples),
  75. // you can manually specify Quasar components/directives to be available everywhere:
  76. //
  77. // components: [],
  78. // directives: [],
  79. // Quasar plugins
  80. plugins: ['LoadingBar', 'Notify', 'Dialog', 'Loading'
  81. ],
  82. config: {
  83. loadingBar: { /* look at QUASARCONFOPTIONS form the API card (bottom of page) */ },
  84. notify: { /* look at QUASARCONFOPTIONS form the API card (bottom of page) */ },
  85. loading: { /* look at QuasarConfOptions from the API card */ }
  86. }
  87. },
  88. // animations: 'all', // --- includes all animations
  89. // https://v1.quasar.dev/options/animations
  90. animations: [],
  91. // https://v1.quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  92. ssr: {
  93. pwa: false
  94. },
  95. // https://v1.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  96. pwa: {
  97. workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
  98. workboxOptions: {}, // only for GenerateSW
  99. manifest: {
  100. name: 'WebBuilderTools',
  101. short_name: 'WebBuilderTools',
  102. description: 'A Quasar Project',
  103. display: 'standalone',
  104. orientation: 'portrait',
  105. background_color: '#ffffff',
  106. theme_color: '#027be3',
  107. icons: [
  108. {
  109. src: 'icons/icon-128x128.png',
  110. sizes: '128x128',
  111. type: 'image/png'
  112. },
  113. {
  114. src: 'icons/icon-192x192.png',
  115. sizes: '192x192',
  116. type: 'image/png'
  117. },
  118. {
  119. src: 'icons/icon-256x256.png',
  120. sizes: '256x256',
  121. type: 'image/png'
  122. },
  123. {
  124. src: 'icons/icon-384x384.png',
  125. sizes: '384x384',
  126. type: 'image/png'
  127. },
  128. {
  129. src: 'icons/icon-512x512.png',
  130. sizes: '512x512',
  131. type: 'image/png'
  132. }
  133. ]
  134. }
  135. },
  136. // Full list of options: https://v1.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  137. cordova: {
  138. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  139. },
  140. // Full list of options: https://v1.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  141. capacitor: {
  142. hideSplashscreen: true
  143. },
  144. // Full list of options: https://v1.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  145. electron: {
  146. bundler: 'packager', // 'packager' or 'builder'
  147. packager: {
  148. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  149. // OS X / Mac App Store
  150. // appBundleId: '',
  151. // appCategoryType: '',
  152. // osxSign: '',
  153. // protocol: 'myapp://path',
  154. // Windows only
  155. // win32metadata: { ... }
  156. },
  157. builder: {
  158. // https://www.electron.build/configuration/configuration
  159. appId: 'webbuildertools'
  160. },
  161. // More info: https://v1.quasar.dev/quasar-cli/developing-electron-apps/node-integration
  162. nodeIntegration: true,
  163. extendWebpack (/* cfg */) {
  164. // do something with Electron main process Webpack cfg
  165. // chainWebpack also available besides this extendWebpack
  166. }
  167. }
  168. }
  169. }