mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
31 lines
688 B
JavaScript
31 lines
688 B
JavaScript
const manifestJSON = require('./public/manifest.json')
|
|
|
|
module.exports = {
|
|
pwa: {
|
|
themeColor: manifestJSON.theme_color,
|
|
workboxOptions: {
|
|
runtimeCaching: [{
|
|
urlPattern: new RegExp('https://fonts.(?:googleapis|gstatic).com/(.*)'),
|
|
handler: 'cacheFirst',
|
|
options: {
|
|
cacheName: 'google-fonts',
|
|
expiration: {
|
|
maxEntries: 30
|
|
},
|
|
cacheableResponse: {
|
|
statuses: [0, 200]
|
|
}
|
|
}
|
|
}]
|
|
}
|
|
},
|
|
chainWebpack: config => {
|
|
config.module
|
|
.rule('graphql')
|
|
.test(/\.gql$/)
|
|
.use('graphql-tag/loader')
|
|
.loader('graphql-tag/loader')
|
|
.end()
|
|
}
|
|
}
|