quasar.conf.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /*
  2. * This file runs in a Node context (it's NOT transpiled by Babel), so use only
  3. * the ES6 features that are supported by your Node version. https://node.green/
  4. */
  5. // Configuration for your app
  6. // https://v2.quasar.dev/quasar-cli/quasar-conf-js
  7. /* eslint-env node */
  8. /* eslint-disable @typescript-eslint/no-var-requires */
  9. const { configure } = require('quasar/wrappers');
  10. module.exports = configure(function (ctx) {
  11. return {
  12. // https://v2.quasar.dev/quasar-cli/supporting-ts
  13. supportTS: {
  14. tsCheckerConfig: {
  15. eslint: {
  16. enabled: true,
  17. files: './src/**/*.{ts,tsx,js,jsx,vue}',
  18. },
  19. }
  20. },
  21. // https://v2.quasar.dev/quasar-cli/prefetch-feature
  22. // preFetch: true,
  23. // app boot file (/src/boot)
  24. // --> boot files are part of "main.js"
  25. // https://v2.quasar.dev/quasar-cli/boot-files
  26. boot: [
  27. ],
  28. // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
  29. css: [
  30. 'app.scss'
  31. ],
  32. // https://github.com/quasarframework/quasar/tree/dev/extras
  33. extras: [
  34. // 'ionicons-v4',
  35. // 'mdi-v5',
  36. // 'fontawesome-v5',
  37. // 'eva-icons',
  38. // 'themify',
  39. // 'line-awesome',
  40. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  41. 'roboto-font', // optional, you are not bound to it
  42. 'material-icons', // optional, you are not bound to it
  43. ],
  44. // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
  45. build: {
  46. // extendWebpack (cfg, { isServer, isClient }) {
  47. // cfg.module.rules.push({
  48. // enforce: 'pre',
  49. // test: /\.wasm$/,
  50. // loader: 'wasm-loader'
  51. // })
  52. // },
  53. vueRouterMode: 'hash', // available values: 'hash', 'history'
  54. // transpile: false,
  55. // Add dependencies for transpiling with Babel (Array of string/regex)
  56. // (from node_modules, which are by default not transpiled).
  57. // Applies only if "transpile" is set to true.
  58. // transpileDependencies: [],
  59. // rtl: true, // https://v2.quasar.dev/options/rtl-support
  60. // preloadChunks: true,
  61. // showProgress: false,
  62. // gzip: true,
  63. // analyze: true,
  64. // Options below are automatically set depending on the env, set them if you want to override
  65. // extractCSS: false,
  66. // https://v2.quasar.dev/quasar-cli/handling-webpack
  67. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  68. chainWebpack (/* chain */) {
  69. //
  70. },
  71. },
  72. // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  73. devServer: {
  74. https: false,
  75. port: 8080,
  76. open: true // opens browser window automatically
  77. },
  78. // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  79. framework: {
  80. config: {},
  81. // iconSet: 'material-icons', // Quasar icon set
  82. // lang: 'en-US', // Quasar language pack
  83. // For special cases outside of where the auto-import strategy can have an impact
  84. // (like functional components as one of the examples),
  85. // you can manually specify Quasar components/directives to be available everywhere:
  86. //
  87. // components: [],
  88. // directives: [],
  89. // Quasar plugins
  90. plugins: []
  91. },
  92. // animations: 'all', // --- includes all animations
  93. // https://v2.quasar.dev/options/animations
  94. animations: [],
  95. // https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  96. ssr: {
  97. pwa: false,
  98. // manualStoreHydration: true,
  99. // manualPostHydrationTrigger: true,
  100. prodPort: 3000, // The default port that the production server should use
  101. // (gets superseded if process.env.PORT is specified at runtime)
  102. maxAge: 1000 * 60 * 60 * 24 * 30,
  103. // Tell browser when a file from the server should expire from cache (in ms)
  104. chainWebpackWebserver (/* chain */) {
  105. //
  106. },
  107. middlewares: [
  108. ctx.prod ? 'compression' : '',
  109. 'render' // keep this as last one
  110. ]
  111. },
  112. // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  113. pwa: {
  114. workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
  115. workboxOptions: {}, // only for GenerateSW
  116. // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
  117. // if using workbox in InjectManifest mode
  118. chainWebpackCustomSW (/* chain */) {
  119. //
  120. },
  121. manifest: {
  122. name: `Scattnlay`,
  123. short_name: `Scattnlay`,
  124. description: `Mie scattering simulations`,
  125. display: 'standalone',
  126. orientation: 'portrait',
  127. background_color: '#ffffff',
  128. theme_color: '#027be3',
  129. icons: [
  130. {
  131. src: 'icons/icon-128x128.png',
  132. sizes: '128x128',
  133. type: 'image/png'
  134. },
  135. {
  136. src: 'icons/icon-192x192.png',
  137. sizes: '192x192',
  138. type: 'image/png'
  139. },
  140. {
  141. src: 'icons/icon-256x256.png',
  142. sizes: '256x256',
  143. type: 'image/png'
  144. },
  145. {
  146. src: 'icons/icon-384x384.png',
  147. sizes: '384x384',
  148. type: 'image/png'
  149. },
  150. {
  151. src: 'icons/icon-512x512.png',
  152. sizes: '512x512',
  153. type: 'image/png'
  154. }
  155. ]
  156. }
  157. },
  158. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  159. cordova: {
  160. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  161. },
  162. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  163. capacitor: {
  164. hideSplashscreen: true
  165. },
  166. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  167. electron: {
  168. bundler: 'packager', // 'packager' or 'builder'
  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. // Windows only
  177. // win32metadata: { ... }
  178. },
  179. builder: {
  180. // https://www.electron.build/configuration/configuration
  181. appId: 'guiapp'
  182. },
  183. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  184. chainWebpack (/* chain */) {
  185. // do something with the Electron main process Webpack cfg
  186. // extendWebpackMain also available besides this chainWebpackMain
  187. },
  188. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  189. chainWebpackPreload (/* chain */) {
  190. // do something with the Electron main process Webpack cfg
  191. // extendWebpackPreload also available besides this chainWebpackPreload
  192. },
  193. }
  194. }
  195. });