117 lines
3.4 KiB
JavaScript
117 lines
3.4 KiB
JavaScript
|
require('dotenv').config();
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = function () {
|
||
|
return {
|
||
|
supportIE: false,
|
||
|
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: [
|
||
|
'app.styl'
|
||
|
],
|
||
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
||
|
extras: [
|
||
|
// 'ionicons-v4',
|
||
|
// '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: {
|
||
|
env: { DEV_API: JSON.stringify(process.env.DEV_URL), PROD_API: JSON.stringify(process.env.PROD_URL) },
|
||
|
vueRouterMode: 'history', // available values: 'hash', 'history'
|
||
|
|
||
|
// 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: [],
|
||
|
|
||
|
modern: true, // https://quasar.dev/quasar-cli/modern-build
|
||
|
// rtl: false, // https://quasar.dev/options/rtl-support
|
||
|
// preloadChunks: true,
|
||
|
// 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: "192.168.99.150",
|
||
|
port: 8080,
|
||
|
open: false
|
||
|
},
|
||
|
|
||
|
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
|
||
|
framework: {
|
||
|
iconSet: 'material-icons', // Quasar icon set
|
||
|
lang: 'en-us', // Quasar language pack
|
||
|
|
||
|
// Possible values for "all":
|
||
|
// * 'auto' - Auto-import needed Quasar components & directives
|
||
|
// (slightly higher compile time; next to minimum bundle size; most convenient)
|
||
|
// * false - Manually specify what to import
|
||
|
// (fastest compile time; minimum bundle size; most tedious)
|
||
|
// * true - Import everything from Quasar
|
||
|
// (not treeshaking Quasar; biggest bundle size; convenient)
|
||
|
all: 'auto',
|
||
|
|
||
|
components: [],
|
||
|
directives: [],
|
||
|
|
||
|
// Quasar plugins
|
||
|
plugins: [
|
||
|
'Dialog',
|
||
|
'Loading',
|
||
|
'LoadingBar',
|
||
|
'Meta',
|
||
|
'Notify'
|
||
|
],
|
||
|
config: {
|
||
|
loadingBar: {
|
||
|
color: "red",
|
||
|
size: "4px"
|
||
|
},
|
||
|
notify: {
|
||
|
position: "top",
|
||
|
timeout: 2000,
|
||
|
textColor: "white",
|
||
|
actions: [{ icon: "close", color: "white" }]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
// animations: 'all', // --- includes all animations
|
||
|
// https://quasar.dev/options/animations
|
||
|
animations: [],
|
||
|
|
||
|
// https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
|
||
|
ssr: {
|
||
|
pwa: false
|
||
|
}
|
||
|
}
|
||
|
}
|