quasar.conf.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. 'material-icons-outlined', // optional, you are not bound to it
  44. ],
  45. // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
  46. build: {
  47. // extendWebpack (cfg, { isServer, isClient }) {
  48. // cfg.module.rules.push({
  49. // enforce: 'pre',
  50. // test: /\.wasm$/,
  51. // loader: 'wasm-loader'
  52. // })
  53. // },
  54. vueRouterMode: 'hash', // available values: 'hash', 'history'
  55. // transpile: false,
  56. // Add dependencies for transpiling with Babel (Array of string/regex)
  57. // (from node_modules, which are by default not transpiled).
  58. // Applies only if "transpile" is set to true.
  59. // transpileDependencies: [],
  60. // rtl: true, // https://v2.quasar.dev/options/rtl-support
  61. // preloadChunks: true,
  62. // showProgress: false,
  63. // gzip: true,
  64. // analyze: true,
  65. // Options below are automatically set depending on the env, set them if you want to override
  66. // extractCSS: false,
  67. // https://v2.quasar.dev/quasar-cli/handling-webpack
  68. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  69. chainWebpack (chain) {
  70. const nodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin')
  71. chain.plugin('node-polyfill').use(nodePolyfillWebpackPlugin)
  72. }
  73. },
  74. // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  75. devServer: {
  76. https: false,
  77. port: 8080,
  78. open: true // opens browser window automatically
  79. },
  80. // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  81. framework: {
  82. cssAddon: true,
  83. config: {},
  84. // iconSet: 'material-icons', // Quasar icon set
  85. // lang: 'en-US', // Quasar language pack
  86. // For special cases outside of where the auto-import strategy can have an impact
  87. // (like functional components as one of the examples),
  88. // you can manually specify Quasar components/directives to be available everywhere:
  89. //
  90. // components: [],
  91. // directives: [],
  92. // Quasar plugins
  93. plugins: []
  94. },
  95. // animations: 'all', // --- includes all animations
  96. // https://v2.quasar.dev/options/animations
  97. animations: [],
  98. // https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  99. ssr: {
  100. pwa: false,
  101. // manualStoreHydration: true,
  102. // manualPostHydrationTrigger: true,
  103. prodPort: 3000, // The default port that the production server should use
  104. // (gets superseded if process.env.PORT is specified at runtime)
  105. maxAge: 1000 * 60 * 60 * 24 * 30,
  106. // Tell browser when a file from the server should expire from cache (in ms)
  107. chainWebpackWebserver (/* chain */) {
  108. //
  109. },
  110. middlewares: [
  111. ctx.prod ? 'compression' : '',
  112. 'render' // keep this as last one
  113. ]
  114. },
  115. // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  116. pwa: {
  117. workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
  118. workboxOptions: {}, // only for GenerateSW
  119. // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
  120. // if using workbox in InjectManifest mode
  121. chainWebpackCustomSW (/* chain */) {
  122. //
  123. },
  124. manifest: {
  125. name: `Scattnlay`,
  126. short_name: `Scattnlay`,
  127. description: `Mie scattering simulations`,
  128. display: 'standalone',
  129. orientation: 'portrait',
  130. background_color: '#ffffff',
  131. theme_color: '#027be3',
  132. icons: [
  133. {
  134. src: 'icons/icon-128x128.png',
  135. sizes: '128x128',
  136. type: 'image/png'
  137. },
  138. {
  139. src: 'icons/icon-192x192.png',
  140. sizes: '192x192',
  141. type: 'image/png'
  142. },
  143. {
  144. src: 'icons/icon-256x256.png',
  145. sizes: '256x256',
  146. type: 'image/png'
  147. },
  148. {
  149. src: 'icons/icon-384x384.png',
  150. sizes: '384x384',
  151. type: 'image/png'
  152. },
  153. {
  154. src: 'icons/icon-512x512.png',
  155. sizes: '512x512',
  156. type: 'image/png'
  157. }
  158. ]
  159. }
  160. },
  161. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  162. cordova: {
  163. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  164. },
  165. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  166. capacitor: {
  167. hideSplashscreen: true
  168. },
  169. // Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  170. electron: {
  171. bundler: 'packager', // 'packager' or 'builder'
  172. packager: {
  173. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  174. // OS X / Mac App Store
  175. // appBundleId: '',
  176. // appCategoryType: '',
  177. // osxSign: '',
  178. // protocol: 'myapp://path',
  179. // Windows only
  180. // win32metadata: { ... }
  181. },
  182. builder: {
  183. // https://www.electron.build/configuration/configuration
  184. appId: 'guiapp'
  185. },
  186. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  187. chainWebpack (/* chain */) {
  188. // do something with the Electron main process Webpack cfg
  189. // extendWebpackMain also available besides this chainWebpackMain
  190. },
  191. // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
  192. chainWebpackPreload (/* chain */) {
  193. // do something with the Electron main process Webpack cfg
  194. // extendWebpackPreload also available besides this chainWebpackPreload
  195. },
  196. }
  197. }
  198. });