|
@@ -19,7 +19,7 @@ module.exports = configure(function (ctx) {
|
|
|
enabled: true,
|
|
|
files: './src/**/*.{ts,tsx,js,jsx,vue}',
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/prefetch-feature
|
|
@@ -28,13 +28,10 @@ module.exports = configure(function (ctx) {
|
|
|
// app boot file (/src/boot)
|
|
|
// --> boot files are part of "main.js"
|
|
|
// https://v2.quasar.dev/quasar-cli/boot-files
|
|
|
- boot: [
|
|
|
- ],
|
|
|
+ boot: [],
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
|
|
|
- css: [
|
|
|
- 'app.scss'
|
|
|
- ],
|
|
|
+ css: ['app.scss'],
|
|
|
|
|
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
|
|
extras: [
|
|
@@ -53,17 +50,16 @@ module.exports = configure(function (ctx) {
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
|
|
|
build: {
|
|
|
- publicPath: process.env.NODE_ENV === 'development'
|
|
|
+ // publicPath: '/',
|
|
|
+ publicPath:
|
|
|
+ process.env.NODE_ENV === 'development'
|
|
|
? '/'
|
|
|
- : '/themes/custom/physics/mie-next/', //deploy path in Drupal setup at physics.ifmo.ru
|
|
|
- // : '/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: ctx.dev
|
|
|
- ? '/'
|
|
|
- : '/themes/custom/physics/mie-next/' //deploy path in Drupal setup at physics.ifmo.ru
|
|
|
- // : '/themes/custom/physics/mie/' //deploy path in Drupal setup at physics.ifmo.ru
|
|
|
+ // publicPath: '/',
|
|
|
+ publicPath: ctx.dev ? '/' : '/themes/custom/physics/mie-next/', // deploy path in Drupal setup at physics.ifmo.ru
|
|
|
},
|
|
|
// extendWebpack (cfg, { isServer, isClient }) {
|
|
|
// cfg.module.rules.push({
|
|
@@ -93,17 +89,17 @@ module.exports = configure(function (ctx) {
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/handling-webpack
|
|
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
|
|
- chainWebpack (chain) {
|
|
|
- const nodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin')
|
|
|
- chain.plugin('node-polyfill').use(nodePolyfillWebpackPlugin)
|
|
|
- }
|
|
|
+ chainWebpack(chain) {
|
|
|
+ const nodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin');
|
|
|
+ chain.plugin('node-polyfill').use(nodePolyfillWebpackPlugin);
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
|
|
|
devServer: {
|
|
|
https: false,
|
|
|
port: 8080,
|
|
|
- open: true // opens browser window automatically
|
|
|
+ open: true, // opens browser window automatically
|
|
|
},
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
|
|
@@ -121,12 +117,12 @@ module.exports = configure(function (ctx) {
|
|
|
// directives: [],
|
|
|
|
|
|
// Quasar plugins
|
|
|
- plugins: [
|
|
|
- 'Loading','Notify'
|
|
|
- ],
|
|
|
+ plugins: ['Loading', 'Notify'],
|
|
|
config: {
|
|
|
- loading: { /* look at QuasarConfOptions from the API card */ }
|
|
|
- }
|
|
|
+ loading: {
|
|
|
+ /* look at QuasarConfOptions from the API card */
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
// animations: 'all', // --- includes all animations
|
|
@@ -141,19 +137,19 @@ module.exports = configure(function (ctx) {
|
|
|
// manualPostHydrationTrigger: true,
|
|
|
|
|
|
prodPort: 3000, // The default port that the production server should use
|
|
|
- // (gets superseded if process.env.PORT is specified at runtime)
|
|
|
+ // (gets superseded if process.env.PORT is specified at runtime)
|
|
|
|
|
|
maxAge: 1000 * 60 * 60 * 24 * 30,
|
|
|
- // Tell browser when a file from the server should expire from cache (in ms)
|
|
|
+ // Tell browser when a file from the server should expire from cache (in ms)
|
|
|
|
|
|
- chainWebpackWebserver (/* chain */) {
|
|
|
+ chainWebpackWebserver(/* chain */) {
|
|
|
//
|
|
|
},
|
|
|
|
|
|
middlewares: [
|
|
|
ctx.prod ? 'compression' : '',
|
|
|
- 'render' // keep this as last one
|
|
|
- ]
|
|
|
+ 'render', // keep this as last one
|
|
|
+ ],
|
|
|
},
|
|
|
|
|
|
// https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa
|
|
@@ -163,7 +159,7 @@ module.exports = configure(function (ctx) {
|
|
|
|
|
|
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
|
|
|
// if using workbox in InjectManifest mode
|
|
|
- chainWebpackCustomSW (/* chain */) {
|
|
|
+ chainWebpackCustomSW(/* chain */) {
|
|
|
//
|
|
|
},
|
|
|
|
|
@@ -179,30 +175,30 @@ module.exports = configure(function (ctx) {
|
|
|
{
|
|
|
src: 'icons/icon-128x128.png',
|
|
|
sizes: '128x128',
|
|
|
- type: 'image/png'
|
|
|
+ type: 'image/png',
|
|
|
},
|
|
|
{
|
|
|
src: 'icons/icon-192x192.png',
|
|
|
sizes: '192x192',
|
|
|
- type: 'image/png'
|
|
|
+ type: 'image/png',
|
|
|
},
|
|
|
{
|
|
|
src: 'icons/icon-256x256.png',
|
|
|
sizes: '256x256',
|
|
|
- type: 'image/png'
|
|
|
+ type: 'image/png',
|
|
|
},
|
|
|
{
|
|
|
src: 'icons/icon-384x384.png',
|
|
|
sizes: '384x384',
|
|
|
- type: 'image/png'
|
|
|
+ type: 'image/png',
|
|
|
},
|
|
|
{
|
|
|
src: 'icons/icon-512x512.png',
|
|
|
sizes: '512x512',
|
|
|
- type: 'image/png'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ type: 'image/png',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
|
|
@@ -212,7 +208,7 @@ module.exports = configure(function (ctx) {
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
|
|
|
capacitor: {
|
|
|
- hideSplashscreen: true
|
|
|
+ hideSplashscreen: true,
|
|
|
},
|
|
|
|
|
|
// Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
|
|
@@ -221,13 +217,11 @@ module.exports = configure(function (ctx) {
|
|
|
|
|
|
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: { ... }
|
|
|
},
|
|
@@ -235,20 +229,20 @@ module.exports = configure(function (ctx) {
|
|
|
builder: {
|
|
|
// https://www.electron.build/configuration/configuration
|
|
|
|
|
|
- appId: 'guiapp'
|
|
|
+ appId: 'guiapp',
|
|
|
},
|
|
|
|
|
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
|
|
- chainWebpack (/* chain */) {
|
|
|
+ chainWebpack(/* chain */) {
|
|
|
// do something with the Electron main process Webpack cfg
|
|
|
// extendWebpackMain also available besides this chainWebpackMain
|
|
|
},
|
|
|
|
|
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
|
|
- chainWebpackPreload (/* chain */) {
|
|
|
+ chainWebpackPreload(/* chain */) {
|
|
|
// do something with the Electron main process Webpack cfg
|
|
|
// extendWebpackPreload also available besides this chainWebpackPreload
|
|
|
},
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ };
|
|
|
});
|