7
7
// https://quasar.dev/quasar-cli/quasar-conf-js
8
8
9
9
/* eslint-env node */
10
- const ESLintPlugin = require ( ' eslint-webpack-plugin' )
11
- const { configure } = require ( ' quasar/wrappers' ) ;
10
+ const ESLintPlugin = require ( " eslint-webpack-plugin" ) ;
11
+ const { configure } = require ( " quasar/wrappers" ) ;
12
12
13
13
module . exports = configure ( function ( ctx ) {
14
14
const env = ctx . dev
15
- ? require ( "quasar-dotenv" ) . config ( { path : ' .env.development' } )
16
- : require ( "quasar-dotenv" ) . config ( )
15
+ ? require ( "quasar-dotenv" ) . config ( { path : " .env.development" } )
16
+ : require ( "quasar-dotenv" ) . config ( ) ;
17
17
18
18
return {
19
19
// https://quasar.dev/quasar-cli/supporting-ts
@@ -25,13 +25,10 @@ module.exports = configure(function (ctx) {
25
25
// app boot file (/src/boot)
26
26
// --> boot files are part of "main.js"
27
27
// https://quasar.dev/quasar-cli/boot-files
28
- boot : [
29
- ] ,
28
+ boot : [ ] ,
30
29
31
30
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
32
- css : [
33
- 'app.scss'
34
- ] ,
31
+ css : [ "app.scss" ] ,
35
32
36
33
// https://github.com/quasarframework/quasar/tree/dev/extras
37
34
extras : [
@@ -43,13 +40,13 @@ module.exports = configure(function (ctx) {
43
40
// 'line-awesome',
44
41
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
45
42
46
- ' roboto-font' , // optional, you are not bound to it
47
- ' material-icons' , // optional, you are not bound to it
43
+ " roboto-font" , // optional, you are not bound to it
44
+ " material-icons" , // optional, you are not bound to it
48
45
] ,
49
46
50
47
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
51
48
build : {
52
- vueRouterMode : ' history' , // available values: 'hash', 'history'
49
+ vueRouterMode : " history" , // available values: 'hash', 'history'
53
50
env : env ,
54
51
// Potential fix for fs errors
55
52
// extendWebpack(cfg) {
@@ -90,10 +87,10 @@ module.exports = configure(function (ctx) {
90
87
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
91
88
devServer : {
92
89
server : {
93
- type : ' http'
90
+ type : " http" ,
94
91
} ,
95
92
port : 8080 ,
96
- open : true // opens browser window automatically
93
+ open : true , // opens browser window automatically
97
94
} ,
98
95
99
96
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
@@ -111,7 +108,7 @@ module.exports = configure(function (ctx) {
111
108
// directives: [],
112
109
113
110
// Quasar plugins
114
- plugins : [ ]
111
+ plugins : [ ] ,
115
112
} ,
116
113
117
114
// animations: 'all', // --- includes all animations
@@ -126,70 +123,72 @@ module.exports = configure(function (ctx) {
126
123
// manualPostHydrationTrigger: true,
127
124
128
125
prodPort : 3000 , // The default port that the production server should use
129
- // (gets superseded if process.env.PORT is specified at runtime)
126
+ // (gets superseded if process.env.PORT is specified at runtime)
130
127
131
128
maxAge : 1000 * 60 * 60 * 24 * 30 ,
132
- // Tell browser when a file from the server should expire from cache (in ms)
129
+ // Tell browser when a file from the server should expire from cache (in ms)
133
130
134
- chainWebpackWebserver ( chain ) {
135
- chain . plugin ( 'eslint-webpack-plugin' )
136
- . use ( ESLintPlugin , [ { extensions : [ 'js' ] } ] )
131
+ chainWebpackWebserver ( chain ) {
132
+ chain
133
+ . plugin ( "eslint-webpack-plugin" )
134
+ . use ( ESLintPlugin , [ { extensions : [ "js" ] } ] ) ;
137
135
} ,
138
136
139
137
middlewares : [
140
- ctx . prod ? ' compression' : '' ,
141
- ' render' // keep this as last one
142
- ]
138
+ ctx . prod ? " compression" : "" ,
139
+ " render" , // keep this as last one
140
+ ] ,
143
141
} ,
144
142
145
143
// https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
146
144
pwa : {
147
- workboxPluginMode : ' GenerateSW' , // 'GenerateSW' or 'InjectManifest'
145
+ workboxPluginMode : " GenerateSW" , // 'GenerateSW' or 'InjectManifest'
148
146
workboxOptions : { } , // only for GenerateSW
149
147
150
148
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
151
149
// if using workbox in InjectManifest mode
152
- chainWebpackCustomSW ( chain ) {
153
- chain . plugin ( 'eslint-webpack-plugin' )
154
- . use ( ESLintPlugin , [ { extensions : [ 'js' ] } ] )
150
+ chainWebpackCustomSW ( chain ) {
151
+ chain
152
+ . plugin ( "eslint-webpack-plugin" )
153
+ . use ( ESLintPlugin , [ { extensions : [ "js" ] } ] ) ;
155
154
} ,
156
155
157
156
manifest : {
158
157
name : `OverVue5.0` ,
159
158
short_name : `OverVue5.0` ,
160
159
description : `A Quasar Framework app` ,
161
- display : ' standalone' ,
162
- orientation : ' portrait' ,
163
- background_color : ' #ffffff' ,
164
- theme_color : ' #027be3' ,
160
+ display : " standalone" ,
161
+ orientation : " portrait" ,
162
+ background_color : " #ffffff" ,
163
+ theme_color : " #027be3" ,
165
164
icons : [
166
165
{
167
- src : ' statics/icons/icon-128x128.png' ,
168
- sizes : ' 128x128' ,
169
- type : ' image/png'
166
+ src : " statics/icons/icon-128x128.png" ,
167
+ sizes : " 128x128" ,
168
+ type : " image/png" ,
170
169
} ,
171
170
{
172
- src : ' statics/icons/icon-192x192.png' ,
173
- sizes : ' 192x192' ,
174
- type : ' image/png'
171
+ src : " statics/icons/icon-192x192.png" ,
172
+ sizes : " 192x192" ,
173
+ type : " image/png" ,
175
174
} ,
176
175
{
177
- src : ' statics/icons/icon-256x256.png' ,
178
- sizes : ' 256x256' ,
179
- type : ' image/png'
176
+ src : " statics/icons/icon-256x256.png" ,
177
+ sizes : " 256x256" ,
178
+ type : " image/png" ,
180
179
} ,
181
180
{
182
- src : ' statics/icons/icon-384x384.png' ,
183
- sizes : ' 384x384' ,
184
- type : ' image/png'
181
+ src : " statics/icons/icon-384x384.png" ,
182
+ sizes : " 384x384" ,
183
+ type : " image/png" ,
185
184
} ,
186
185
{
187
- src : ' statics/icons/icon-512x512.png' ,
188
- sizes : ' 512x512' ,
189
- type : ' image/png'
190
- }
191
- ]
192
- }
186
+ src : " statics/icons/icon-512x512.png" ,
187
+ sizes : " 512x512" ,
188
+ type : " image/png" ,
189
+ } ,
190
+ ] ,
191
+ } ,
193
192
} ,
194
193
195
194
// Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
@@ -199,25 +198,23 @@ module.exports = configure(function (ctx) {
199
198
200
199
// Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
201
200
capacitor : {
202
- hideSplashscreen : true
201
+ hideSplashscreen : true ,
203
202
} ,
204
203
205
204
// Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
206
205
electron : {
207
206
// bundler: 'packager', // 'packager' or 'builder'
208
- bundler : ' builder' ,
207
+ bundler : " builder" ,
209
208
packager : {
210
- // protocols: ["overvue"],
209
+ // protocols: ["overvue"],
211
210
protocol : "overvue" ,
212
211
appBundleId : "overvue" ,
213
212
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
214
-
215
213
// OS X / Mac App Store
216
214
// appBundleId: '',
217
215
// appCategoryType: '',
218
216
// osxSign: '',
219
217
// protocol: 'myapp://path',
220
-
221
218
// Windows only
222
219
// win32metadata: { ... }
223
220
} ,
@@ -227,27 +224,29 @@ module.exports = configure(function (ctx) {
227
224
228
225
appId : "com.electron.OverVue" ,
229
226
win : {
230
- target : "nsis"
227
+ target : "nsis" ,
231
228
} ,
232
229
protocols : [
233
230
{
234
231
name : "overvue" ,
235
- schemes : [ "overvue" ]
236
- }
237
- ]
232
+ schemes : [ "overvue" ] ,
233
+ } ,
234
+ ] ,
238
235
} ,
239
236
240
237
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
241
- chainWebpackMain ( chain ) {
242
- chain . plugin ( 'eslint-webpack-plugin' )
243
- . use ( ESLintPlugin , [ { extensions : [ 'js' ] } ] )
238
+ chainWebpackMain ( chain ) {
239
+ chain
240
+ . plugin ( "eslint-webpack-plugin" )
241
+ . use ( ESLintPlugin , [ { extensions : [ "js" ] } ] ) ;
244
242
} ,
245
243
246
244
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
247
- chainWebpackPreload ( chain ) {
248
- chain . plugin ( 'eslint-webpack-plugin' )
249
- . use ( ESLintPlugin , [ { extensions : [ 'js' ] } ] )
245
+ chainWebpackPreload ( chain ) {
246
+ chain
247
+ . plugin ( "eslint-webpack-plugin" )
248
+ . use ( ESLintPlugin , [ { extensions : [ "js" ] } ] ) ;
250
249
} ,
251
- }
252
- }
250
+ } ,
251
+ } ;
253
252
} ) ;
0 commit comments