tacticalrmm/web/quasar.conf.js

107 lines
3.0 KiB
JavaScript
Raw Normal View History

require('dotenv').config();
const path = require('path');
module.exports = function () {
return {
supportTS: false,
// https://quasar.dev/quasar-cli/cli-documentation/prefetch-feature
// preFetch: true,
boot: [
'axios',
],
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
css: [
2020-06-29 01:35:15 +00:00
'app.sass'
],
// https://github.com/quasarframework/quasar/tree/dev/extras
extras: [
// 'ionicons-v4',
2020-12-31 20:46:44 +00:00
'mdi-v5',
'fontawesome-v5',
// '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
],
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: {
2020-11-22 17:03:40 +00:00
env: { DEV_API: process.env.DEV_URL, PROD_API: process.env.PROD_URL, DOCKER_BUILD: process.env.DOCKER_BUILD },
vueRouterMode: 'history', // available values: 'hash', 'history'
2020-06-09 23:04:47 +00:00
distDir: "dist/",
2020-12-31 20:46:44 +00:00
devtool: process.env.NODE_ENV === "production" ? "cheap-module-eval-source-map" : "source-map",
// Add dependencies for transpiling with Babel (Array of regexes)
// (from node_modules, which are by default not transpiled).
// Does not applies to modern builds.
// transpileDependencies: [],
// rtl: false, // https://quasar.dev/options/rtl-support
2020-06-22 00:43:50 +00:00
// preloadChunks: false,
// showProgress: false,
// gzip: true,
// analyze: true,
// Options below are automatically set depending on the env, set them if you want to override
// extractCSS: false,
// https://quasar.dev/quasar-cli/cli-documentation/handling-webpack
extendWebpack(cfg) {
cfg.resolve.alias = {
...cfg.resolve.alias,
"@": path.resolve(__dirname, './src'),
}
},
},
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
https: false,
host: process.env.DEV_HOST,
port: process.env.DEV_PORT,
open: false
},
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
framework: {
iconSet: 'material-icons', // Quasar icon set
2021-05-13 22:09:17 +00:00
lang: 'en-US', // Quasar language pack
// Quasar plugins
plugins: [
'Dialog',
'Loading',
2020-06-18 07:09:29 +00:00
'LoadingBar',
'Meta',
'Notify'
],
config: {
2020-06-18 07:09:29 +00:00
loadingBar: {
size: "4px"
},
notify: {
position: "top",
timeout: 2000,
textColor: "white",
actions: [{ icon: "close", color: "white" }]
2021-05-25 16:45:45 +00:00
},
loading: {
2021-06-27 01:15:47 +00:00
delay: 50
}
}
},
// animations: 'all', // --- includes all animations
// https://quasar.dev/options/animations
animations: [],
// https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
ssr: {
pwa: false
}
}
}