2018-05-31 13:59:18 -07:00
|
|
|
// Configuration for your app
|
|
|
|
|
|
|
|
module.exports = function (ctx) {
|
|
|
|
return {
|
|
|
|
// app plugins (/src/plugins)
|
2019-01-01 17:23:46 -08:00
|
|
|
plugins: ['socket'],
|
|
|
|
css: ['app.styl'],
|
2018-05-31 13:59:18 -07:00
|
|
|
extras: [
|
|
|
|
ctx.theme.mat ? 'roboto-font' : null,
|
|
|
|
'material-icons',
|
|
|
|
ctx.theme.ios ? 'ionicons' : null
|
|
|
|
// 'mdi',
|
|
|
|
// 'fontawesome'
|
|
|
|
],
|
|
|
|
supportIE: false,
|
|
|
|
build: {
|
|
|
|
scopeHoisting: true,
|
|
|
|
vueRouterMode: 'history',
|
|
|
|
// vueCompiler: true,
|
|
|
|
// gzip: true,
|
|
|
|
// analyze: true,
|
|
|
|
// extractCSS: false,
|
|
|
|
extendWebpack (cfg) {
|
|
|
|
cfg.module.rules.push({
|
|
|
|
enforce: 'pre',
|
|
|
|
test: /\.(js|vue)$/,
|
|
|
|
loader: 'eslint-loader',
|
|
|
|
exclude: /(node_modules|quasar)/
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
// https: true,
|
|
|
|
// port: 8080,
|
|
|
|
open: true // opens browser window automatically
|
|
|
|
},
|
|
|
|
// framework: 'all' --- includes everything; for dev only!
|
|
|
|
framework: {
|
|
|
|
components: [
|
|
|
|
'QLayout',
|
|
|
|
'QLayoutHeader',
|
|
|
|
'QLayoutDrawer',
|
|
|
|
'QPageContainer',
|
|
|
|
'QPage',
|
|
|
|
'QToolbar',
|
|
|
|
'QToolbarTitle',
|
|
|
|
'QBtn',
|
|
|
|
'QIcon',
|
|
|
|
'QList',
|
|
|
|
'QListHeader',
|
|
|
|
'QItem',
|
|
|
|
'QItemMain',
|
|
|
|
'QItemSide',
|
|
|
|
'QInput',
|
|
|
|
'QField'
|
|
|
|
],
|
2019-01-01 17:23:46 -08:00
|
|
|
directives: ['Ripple'],
|
2018-05-31 13:59:18 -07:00
|
|
|
// Quasar plugins
|
2019-01-01 17:23:46 -08:00
|
|
|
plugins: ['Notify'],
|
2018-05-31 13:59:18 -07:00
|
|
|
iconSet: ctx.theme.mat ? 'material-icons' : 'ionicons'
|
|
|
|
},
|
|
|
|
// animations: 'all' --- includes all animations
|
2019-01-01 17:23:46 -08:00
|
|
|
animations: [],
|
2018-05-31 13:59:18 -07:00
|
|
|
pwa: {
|
|
|
|
// workboxPluginMode: 'InjectManifest',
|
|
|
|
// workboxOptions: {},
|
|
|
|
manifest: {
|
|
|
|
// name: 'Quasar App',
|
|
|
|
// short_name: 'Quasar-PWA',
|
|
|
|
// description: 'Best PWA App in town!',
|
|
|
|
display: 'standalone',
|
|
|
|
orientation: 'portrait',
|
|
|
|
background_color: '#ffffff',
|
|
|
|
theme_color: '#027be3',
|
|
|
|
icons: [
|
|
|
|
{
|
2019-01-01 17:23:46 -08:00
|
|
|
src: 'statics/icons/icon-128x128.png',
|
|
|
|
sizes: '128x128',
|
|
|
|
type: 'image/png'
|
2018-05-31 13:59:18 -07:00
|
|
|
},
|
|
|
|
{
|
2019-01-01 17:23:46 -08:00
|
|
|
src: 'statics/icons/icon-192x192.png',
|
|
|
|
sizes: '192x192',
|
|
|
|
type: 'image/png'
|
2018-05-31 13:59:18 -07:00
|
|
|
},
|
|
|
|
{
|
2019-01-01 17:23:46 -08:00
|
|
|
src: 'statics/icons/icon-256x256.png',
|
|
|
|
sizes: '256x256',
|
|
|
|
type: 'image/png'
|
2018-05-31 13:59:18 -07:00
|
|
|
},
|
|
|
|
{
|
2019-01-01 17:23:46 -08:00
|
|
|
src: 'statics/icons/icon-384x384.png',
|
|
|
|
sizes: '384x384',
|
|
|
|
type: 'image/png'
|
2018-05-31 13:59:18 -07:00
|
|
|
},
|
|
|
|
{
|
2019-01-01 17:23:46 -08:00
|
|
|
src: 'statics/icons/icon-512x512.png',
|
|
|
|
sizes: '512x512',
|
|
|
|
type: 'image/png'
|
2018-05-31 13:59:18 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
cordova: {
|
|
|
|
// id: 'org.cordova.quasar.app'
|
|
|
|
},
|
|
|
|
electron: {
|
|
|
|
// bundler: 'builder', // or 'packager'
|
|
|
|
extendWebpack (cfg) {
|
|
|
|
// do something with Electron process Webpack cfg
|
|
|
|
},
|
|
|
|
packager: {
|
|
|
|
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
|
|
|
|
// OS X / Mac App Store
|
|
|
|
// appBundleId: '',
|
|
|
|
// appCategoryType: '',
|
|
|
|
// osxSign: '',
|
|
|
|
// protocol: 'myapp://path',
|
|
|
|
// Window only
|
|
|
|
// win32metadata: { ... }
|
|
|
|
},
|
|
|
|
builder: {
|
|
|
|
// https://www.electron.build/configuration/configuration
|
|
|
|
// appId: 'quasar-app'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|