quasar.conf.js 7.9 KB

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