1
1
// Configuration for your app
2
2
// https://quasar.dev/quasar-cli/quasar-conf-js
3
3
4
- module . exports = function ( ctx ) {
5
- console . log ( 'webpack\'s context parameter: ' , ctx )
4
+ module . exports = function ( ctx ) {
5
+ const env = ctx . dev
6
+ ? require ( "quasar-dotenv" ) . config ( { path : '.env.development' } )
7
+ : require ( "quasar-dotenv" ) . config ( )
8
+
9
+ // console.log('ctx: ', ctx)
6
10
return {
7
11
// app boot file (/src/boot)
8
12
// --> boot files are part of "main.js"
9
- boot : [
10
- ] ,
13
+ boot : [ ] ,
11
14
12
- css : [
13
- 'app.styl'
14
- ] ,
15
+ css : [ "app.styl" ] ,
15
16
16
17
extras : [
17
18
// 'ionicons-v4',
@@ -21,8 +22,8 @@ module.exports = function (ctx) {
21
22
// 'themify',
22
23
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
23
24
24
- ' roboto-font' , // optional, you are not bound to it
25
- ' material-icons' // optional, you are not bound to it
25
+ " roboto-font" , // optional, you are not bound to it
26
+ " material-icons" // optional, you are not bound to it
26
27
] ,
27
28
28
29
framework : {
@@ -32,61 +33,56 @@ module.exports = function (ctx) {
32
33
// all: true, // --- includes everything; for dev only!
33
34
34
35
components : [
35
- ' QLayout' ,
36
- ' QHeader' ,
37
- ' QDrawer' ,
38
- ' QPageContainer' ,
39
- ' QPage' ,
40
- ' QToolbar' ,
41
- ' QToolbarTitle' ,
42
- ' QBtn' ,
43
- ' QIcon' ,
44
- ' QList' ,
45
- ' QItem' ,
46
- ' QItemSection' ,
47
- ' QItemLabel' ,
48
- ' QExpansionItem' ,
49
- ' QInput' ,
50
- ' QBar' ,
51
- ' QFooter' ,
52
- ' QAvatar' ,
53
- ' QTabs' ,
54
- ' QTab' ,
55
- ' QRouteTab' ,
56
- ' QTabPanels' ,
57
- ' QDialog' ,
58
- ' QSelect' ,
59
- ' QTabPanel' ,
60
- ' QFab' ,
61
- ' QFabAction' ,
62
- ' QMenu' ,
63
- ' QUploader' ,
64
- ' QEditor' ,
65
- ' QCard' ,
66
- ' QChip'
36
+ " QLayout" ,
37
+ " QHeader" ,
38
+ " QDrawer" ,
39
+ " QPageContainer" ,
40
+ " QPage" ,
41
+ " QToolbar" ,
42
+ " QToolbarTitle" ,
43
+ " QBtn" ,
44
+ " QIcon" ,
45
+ " QList" ,
46
+ " QItem" ,
47
+ " QItemSection" ,
48
+ " QItemLabel" ,
49
+ " QExpansionItem" ,
50
+ " QInput" ,
51
+ " QBar" ,
52
+ " QFooter" ,
53
+ " QAvatar" ,
54
+ " QTabs" ,
55
+ " QTab" ,
56
+ " QRouteTab" ,
57
+ " QTabPanels" ,
58
+ " QDialog" ,
59
+ " QSelect" ,
60
+ " QTabPanel" ,
61
+ " QFab" ,
62
+ " QFabAction" ,
63
+ " QMenu" ,
64
+ " QUploader" ,
65
+ " QEditor" ,
66
+ " QCard" ,
67
+ " QChip"
67
68
] ,
68
69
69
- directives : [
70
- 'Ripple' ,
71
- 'ClosePopup'
72
- ] ,
70
+ directives : [ "Ripple" , "ClosePopup" ] ,
73
71
74
72
// Quasar plugins
75
- plugins : [
76
- 'Notify'
77
- ]
73
+ plugins : [ "Notify" ]
78
74
} ,
79
75
80
76
supportIE : false ,
81
77
82
78
build : {
83
- scopeHoisting : true ,
79
+ // scopeHoisting: true,
84
80
// vueRouterMode: 'history',
85
81
// vueCompiler: true,
86
82
// gzip: true,
87
83
// analyze: true,
88
84
// extractCSS: false,
89
- extendWebpack ( cfg ) {
85
+ extendWebpack ( cfg ) {
90
86
// cfg.module.rules.push({
91
87
// enforce: 'pre',
92
88
// test: /\.(js|vue)$/,
@@ -96,13 +92,17 @@ module.exports = function (ctx) {
96
92
// formatter: require('eslint').CLIEngine.getFormatter('stylish')
97
93
// }
98
94
// })
99
- }
95
+ } ,
96
+ env : env ,
100
97
} ,
101
98
102
99
devServer : {
103
- // https: true,
100
+ https : true ,
104
101
// port: 8080,
102
+ // public: 'overvuedev',
103
+ // host: 'overvuedev',
105
104
open : true // opens browser window automatically
105
+
106
106
} ,
107
107
108
108
// animations: 'all', // --- includes all animations
@@ -119,35 +119,35 @@ module.exports = function (ctx) {
119
119
// name: 'Quasar App',
120
120
// short_name: 'Quasar App',
121
121
// description: 'A Quasar Framework app',
122
- display : ' standalone' ,
123
- orientation : ' portrait' ,
124
- background_color : ' #ffffff' ,
125
- theme_color : ' #027be3' ,
122
+ display : " standalone" ,
123
+ orientation : " portrait" ,
124
+ background_color : " #ffffff" ,
125
+ theme_color : " #027be3" ,
126
126
icons : [
127
127
{
128
- ' src' : ' statics/icons/icon-128x128.png' ,
129
- ' sizes' : ' 128x128' ,
130
- ' type' : ' image/png'
128
+ src : " statics/icons/icon-128x128.png" ,
129
+ sizes : " 128x128" ,
130
+ type : " image/png"
131
131
} ,
132
132
{
133
- ' src' : ' statics/icons/icon-192x192.png' ,
134
- ' sizes' : ' 192x192' ,
135
- ' type' : ' image/png'
133
+ src : " statics/icons/icon-192x192.png" ,
134
+ sizes : " 192x192" ,
135
+ type : " image/png"
136
136
} ,
137
137
{
138
- ' src' : ' statics/icons/icon-256x256.png' ,
139
- ' sizes' : ' 256x256' ,
140
- ' type' : ' image/png'
138
+ src : " statics/icons/icon-256x256.png" ,
139
+ sizes : " 256x256" ,
140
+ type : " image/png"
141
141
} ,
142
142
{
143
- ' src' : ' statics/icons/icon-384x384.png' ,
144
- ' sizes' : ' 384x384' ,
145
- ' type' : ' image/png'
143
+ src : " statics/icons/icon-384x384.png" ,
144
+ sizes : " 384x384" ,
145
+ type : " image/png"
146
146
} ,
147
147
{
148
- ' src' : ' statics/icons/icon-512x512.png' ,
149
- ' sizes' : ' 512x512' ,
150
- ' type' : ' image/png'
148
+ src : " statics/icons/icon-512x512.png" ,
149
+ sizes : " 512x512" ,
150
+ type : " image/png"
151
151
}
152
152
]
153
153
}
@@ -159,10 +159,10 @@ module.exports = function (ctx) {
159
159
} ,
160
160
161
161
electron : {
162
- bundler : ' packager' ,
162
+ bundler : " packager" ,
163
163
// bundler: 'builder', // or 'packager'
164
164
165
- extendWebpack ( cfg ) {
165
+ extendWebpack ( cfg ) {
166
166
// do something with Electron main process Webpack cfg
167
167
// chainWebpack also available besides this extendWebpack
168
168
} ,
@@ -171,10 +171,10 @@ module.exports = function (ctx) {
171
171
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
172
172
173
173
// OS X / Mac App Store
174
- appBundleId : ' overvue' ,
174
+ appBundleId : " overvue" ,
175
175
// appCategoryType: '',
176
176
// osxSign: '',
177
- protocol : ' overvue'
177
+ protocol : " overvue"
178
178
179
179
// Windows only
180
180
// win32metadata: { ... }
@@ -183,17 +183,17 @@ module.exports = function (ctx) {
183
183
builder : {
184
184
// https://www.electron.build/configuration/configuration
185
185
186
- appId : ' com.electron.OverVue' ,
186
+ appId : " com.electron.OverVue" ,
187
187
win : {
188
- target : ' nsis'
188
+ target : " nsis"
189
189
} ,
190
190
protocols : [
191
191
{
192
- name : ' overvue' ,
193
- schemes : [ ' overvue' ]
192
+ name : " overvue" ,
193
+ schemes : [ " overvue" ]
194
194
}
195
195
]
196
196
}
197
197
}
198
- }
199
- }
198
+ } ;
199
+ } ;
0 commit comments