quasar.config.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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://v2.quasar.dev/quasar-cli-vite/quasar-config-js
  8. const { configure } = require('quasar/wrappers');
  9. module.exports = configure(function ( ctx ) {
  10. return {
  11. eslint: {
  12. // fix: true,
  13. // include: [],
  14. exclude: ['src/nmiejs.js'],
  15. // rawOptions: {},
  16. warnings: true,
  17. errors: true
  18. },
  19. // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
  20. // preFetch: true,
  21. // app boot file (/src/boot)
  22. // --> boot files are part of "main.js"
  23. // https://v2.quasar.dev/quasar-cli-vite/boot-files
  24. boot: [
  25. ],
  26. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
  27. css: [
  28. 'app.scss'
  29. ],
  30. // https://github.com/quasarframework/quasar/tree/dev/extras
  31. extras: [
  32. // 'ionicons-v4',
  33. // 'mdi-v7',
  34. // 'fontawesome-v6',
  35. // 'eva-icons',
  36. // 'themify',
  37. // 'line-awesome',
  38. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  39. 'roboto-font', // optional, you are not bound to it
  40. 'material-icons', // optional, you are not bound to it
  41. 'material-icons-outlined', // optional, you are not bound to it
  42. ],
  43. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
  44. build: {
  45. target: {
  46. browser: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
  47. node: 'node20'
  48. },
  49. vueRouterMode: 'hash', // available values: 'hash', 'history'
  50. // vueRouterBase,
  51. // vueDevtools,
  52. // vueOptionsAPI: false,
  53. // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
  54. publicPath: '/',
  55. // publicPath:
  56. // process.env.NODE_ENV === 'development'
  57. // ? '/'
  58. // : '/themes/custom/physics/mie/', // deploy path in Drupal setup at physics.ifmo.ru
  59. // // : '/themes/custom/physics/mie-next/', // deploy path in Drupal setup at physics.ifmo.ru
  60. env: {
  61. // copy publicPath from above build.publicPath to make it available from inside of the app.
  62. publicPath: '/',
  63. // publicPath: ctx.dev ? '/' : '/themes/custom/physics/mie/', // deploy path in Drupal setup at physics.ifmo.ru
  64. // publicPath: ctx.dev ? '/' : '/themes/custom/physics/mie-next/', // deploy path in Drupal setup at physics.ifmo.ru
  65. },
  66. // analyze: true,
  67. // env: {},
  68. // rawDefine: {}
  69. // ignorePublicFolder: true,
  70. // minify: false,
  71. // polyfillModulePreload: true,
  72. // distDir
  73. // extendViteConf (viteConf) {},
  74. // viteVuePluginOptions: {},
  75. // vitePlugins: [
  76. // [ 'package-name', { ..options.. } ]
  77. // ]
  78. },
  79. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
  80. devServer: {
  81. // https: true
  82. open: true // opens browser window automatically
  83. },
  84. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
  85. framework: {
  86. cssAddon: true,
  87. // iconSet: 'material-icons', // Quasar icon set
  88. // lang: 'en-US', // Quasar language pack
  89. // For special cases outside of where the auto-import strategy can have an impact
  90. // (like functional components as one of the examples),
  91. // you can manually specify Quasar components/directives to be available everywhere:
  92. //
  93. // components: [],
  94. // directives: [],
  95. // Quasar plugins
  96. plugins: ['Loading', 'Notify'],
  97. config: {
  98. loading:{ /* look at QuasarConfOptions from the API card */}
  99. },
  100. },
  101. // animations: 'all', // --- includes all animations
  102. // https://v2.quasar.dev/options/animations
  103. animations: [],
  104. // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#sourcefiles
  105. // sourceFiles: {
  106. // rootComponent: 'src/App.vue',
  107. // router: 'src/router/index',
  108. // store: 'src/store/index',
  109. // registerServiceWorker: 'src-pwa/register-service-worker',
  110. // serviceWorker: 'src-pwa/custom-service-worker',
  111. // pwaManifestFile: 'src-pwa/manifest.json',
  112. // electronMain: 'src-electron/electron-main',
  113. // electronPreload: 'src-electron/electron-preload'
  114. // },
  115. // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
  116. ssr: {
  117. // ssrPwaHtmlFilename: 'offline.html', // do NOT use index.html as name!
  118. // will mess up SSR
  119. // extendSSRWebserverConf (esbuildConf) {},
  120. // extendPackageJson (json) {},
  121. pwa: false,
  122. // manualStoreHydration: true,
  123. // manualPostHydrationTrigger: true,
  124. prodPort: 3000, // The default port that the production server should use
  125. // (gets superseded if process.env.PORT is specified at runtime)
  126. middlewares: [
  127. 'render' // keep this as last one
  128. ]
  129. },
  130. // https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
  131. pwa: {
  132. workboxMode: 'generateSW', // or 'injectManifest'
  133. injectPwaMetaTags: true,
  134. swFilename: 'sw.js',
  135. manifestFilename: 'manifest.json',
  136. useCredentialsForManifestTag: false,
  137. // useFilenameHashes: true,
  138. // extendGenerateSWOptions (cfg) {}
  139. // extendInjectManifestOptions (cfg) {},
  140. // extendManifestJson (json) {}
  141. // extendPWACustomSWConf (esbuildConf) {}
  142. },
  143. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
  144. cordova: {
  145. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  146. },
  147. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
  148. capacitor: {
  149. hideSplashscreen: true
  150. },
  151. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
  152. electron: {
  153. // extendElectronMainConf (esbuildConf)
  154. // extendElectronPreloadConf (esbuildConf)
  155. inspectPort: 5858,
  156. bundler: 'packager', // 'packager' or 'builder'
  157. packager: {
  158. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  159. // OS X / Mac App Store
  160. // appBundleId: '',
  161. // appCategoryType: '',
  162. // osxSign: '',
  163. // protocol: 'myapp://path',
  164. // Windows only
  165. // win32metadata: { ... }
  166. },
  167. builder: {
  168. // https://www.electron.build/configuration/configuration
  169. appId: 'scattnlay-guiapp'
  170. }
  171. },
  172. // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
  173. bex: {
  174. contentScripts: [
  175. 'my-content-script'
  176. ],
  177. // extendBexScriptsConf (esbuildConf) {}
  178. // extendBexManifestJson (json) {}
  179. }
  180. }
  181. });