-
Notifications
You must be signed in to change notification settings - Fork 70
/
quasar.conf.js
79 lines (78 loc) · 2.13 KB
/
quasar.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Configuration for your app
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = function (ctx) {
return {
boot: [],
plugins: [],
sourceFiles: {
rootComponent: 'demo/App.vue',
router: 'demo/router/index.js',
// store: 'src/store/index.js',
indexHtmlTemplate: 'demo/index.template.html',
},
css: [
'app.styl'
// 'component/calendar/styles-common/app.styl',
// 'component/calendar/styles-common/calendar.vars.styl'
],
animations: 'all',
extras: [
'roboto-font',
'material-icons' // optional, you are not bound to it
// 'ionicons-v4',
// 'mdi-v3',
// 'fontawesome-v5',
// 'eva-icons'
],
// framework: 'all', // --- includes everything; for dev only!
framework: {},
supportIE: false,
build: {
publicPath: '/daykeep-calendar-quasar',
distDir: 'docs',
scopeHoisting: true,
extendWebpack (cfg) {
cfg.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules|quasar)/
})
cfg.resolve.alias = {
...cfg.resolve.alias,
src: path.resolve(__dirname, './demo'),
components: path.resolve(__dirname, './component'),
layouts: path.resolve(__dirname, './demo/layouts'),
pages: path.resolve(__dirname, './demo/pages'),
assets: path.resolve(__dirname, './demo/assets'),
boot: path.resolve(__dirname, './demo/boot')
}
cfg.plugins.push(
new CopyPlugin([
{ from: 'demo/statics', to: 'statics' }
])
)
}
},
devServer: {
// https: true,
port: 8084,
open: false // opens browser window automatically
},
ssr: {
pwa: false
},
pwa: {
manifest: {
// name: 'Quasar App',
// short_name: 'Quasar-PWA',
// description: 'Best PWA App in town!',
display: 'standalone',
orientation: 'portrait',
background_color: '#ffffff',
theme_color: '#027be3'
}
}
}
}