123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- /* eslint-env node */
- /*
- * This file runs in a Node context (it's NOT transpiled by Babel), so use only
- * the ES6 features that are supported by your Node version. https://node.green/
- */
- // Configuration for your app
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js
- const { configure } = require('quasar/wrappers');
- module.exports = configure(function ( ctx ) {
- return {
- eslint: {
- // fix: true,
- // include: [],
- exclude: ['src/nmiejs.js'],
- // rawOptions: {},
- warnings: true,
- errors: true
- },
- // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
- // preFetch: true,
- // app boot file (/src/boot)
- // --> boot files are part of "main.js"
- // https://v2.quasar.dev/quasar-cli-vite/boot-files
- boot: [
- ],
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
- css: [
- 'app.scss'
- ],
- // https://github.com/quasarframework/quasar/tree/dev/extras
- extras: [
- // 'ionicons-v4',
- // 'mdi-v7',
- // 'fontawesome-v6',
- // 'eva-icons',
- // 'themify',
- // 'line-awesome',
- // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
- 'roboto-font', // optional, you are not bound to it
- 'material-icons', // optional, you are not bound to it
- 'material-icons-outlined', // optional, you are not bound to it
- ],
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build
- build: {
- target: {
- browser: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
- node: 'node20'
- },
- vueRouterMode: 'hash', // available values: 'hash', 'history'
- // vueRouterBase,
- // vueDevtools,
- // vueOptionsAPI: false,
- // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
- publicPath: '/',
- // publicPath:
- // process.env.NODE_ENV === 'development'
- // ? '/'
- // : '/themes/custom/physics/mie/', // deploy path in Drupal setup at physics.ifmo.ru
- // // : '/themes/custom/physics/mie-next/', // deploy path in Drupal setup at physics.ifmo.ru
- env: {
- // copy publicPath from above build.publicPath to make it available from inside of the app.
- publicPath: '/',
- // publicPath: ctx.dev ? '/' : '/themes/custom/physics/mie/', // deploy path in Drupal setup at physics.ifmo.ru
- // publicPath: ctx.dev ? '/' : '/themes/custom/physics/mie-next/', // deploy path in Drupal setup at physics.ifmo.ru
- },
- // analyze: true,
- // env: {},
- // rawDefine: {}
- // ignorePublicFolder: true,
- // minify: false,
- // polyfillModulePreload: true,
- // distDir
- // extendViteConf (viteConf) {},
- // viteVuePluginOptions: {},
- // vitePlugins: [
- // [ 'package-name', { ..options.. } ]
- // ]
- },
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
- devServer: {
- // https: true
- open: true // opens browser window automatically
- },
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework
- framework: {
- cssAddon: true,
- // iconSet: 'material-icons', // Quasar icon set
- // lang: 'en-US', // Quasar language pack
- // For special cases outside of where the auto-import strategy can have an impact
- // (like functional components as one of the examples),
- // you can manually specify Quasar components/directives to be available everywhere:
- //
- // components: [],
- // directives: [],
- // Quasar plugins
- plugins: ['Loading', 'Notify'],
- config: {
- loading:{ /* look at QuasarConfOptions from the API card */}
- },
- },
- // animations: 'all', // --- includes all animations
- // https://v2.quasar.dev/options/animations
- animations: [],
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#sourcefiles
- // sourceFiles: {
- // rootComponent: 'src/App.vue',
- // router: 'src/router/index',
- // store: 'src/store/index',
- // registerServiceWorker: 'src-pwa/register-service-worker',
- // serviceWorker: 'src-pwa/custom-service-worker',
- // pwaManifestFile: 'src-pwa/manifest.json',
- // electronMain: 'src-electron/electron-main',
- // electronPreload: 'src-electron/electron-preload'
- // },
- // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
- ssr: {
- // ssrPwaHtmlFilename: 'offline.html', // do NOT use index.html as name!
- // will mess up SSR
- // extendSSRWebserverConf (esbuildConf) {},
- // extendPackageJson (json) {},
- pwa: false,
- // manualStoreHydration: true,
- // manualPostHydrationTrigger: true,
- prodPort: 3000, // The default port that the production server should use
- // (gets superseded if process.env.PORT is specified at runtime)
- middlewares: [
- 'render' // keep this as last one
- ]
- },
- // https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
- pwa: {
- workboxMode: 'generateSW', // or 'injectManifest'
- injectPwaMetaTags: true,
- swFilename: 'sw.js',
- manifestFilename: 'manifest.json',
- useCredentialsForManifestTag: false,
- // useFilenameHashes: true,
- // extendGenerateSWOptions (cfg) {}
- // extendInjectManifestOptions (cfg) {},
- // extendManifestJson (json) {}
- // extendPWACustomSWConf (esbuildConf) {}
- },
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
- cordova: {
- // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
- },
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
- capacitor: {
- hideSplashscreen: true
- },
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
- electron: {
- // extendElectronMainConf (esbuildConf)
- // extendElectronPreloadConf (esbuildConf)
- inspectPort: 5858,
- bundler: 'packager', // 'packager' or 'builder'
- packager: {
- // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
- // OS X / Mac App Store
- // appBundleId: '',
- // appCategoryType: '',
- // osxSign: '',
- // protocol: 'myapp://path',
- // Windows only
- // win32metadata: { ... }
- },
- builder: {
- // https://www.electron.build/configuration/configuration
- appId: 'scattnlay-guiapp'
- }
- },
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
- bex: {
- contentScripts: [
- 'my-content-script'
- ],
- // extendBexScriptsConf (esbuildConf) {}
- // extendBexManifestJson (json) {}
- }
- }
- });
|