Commit e5dd6b7e authored by Pooya Parsa's avatar Pooya Parsa

use pwa module

parent d2d3e5c0
...@@ -2,22 +2,21 @@ module.exports = { ...@@ -2,22 +2,21 @@ module.exports = {
build: { build: {
extractCSS: true, extractCSS: true,
extend(config, {isClient}) { extend(config, {isClient}) {
config.resolve.alias['create-api'] = config.resolve.alias['create-api'] = `./create-api-${isClient ? 'client' : 'server'}.js`
`./create-api-${isClient ? 'client' : 'server'}.js`
} }
}, },
head: { head: {
titleTemplate: 'Nuxt HN | %s', titleTemplate: 'Nuxt HN | %s'
},
loading: {
color: '#ff6600'
}, },
loading: {color: '#ff6600'},
manifest: { manifest: {
theme_color: '#41B883' theme_color: '#41B883'
}, },
modules: [ modules: [
require('@nuxtjs/manifest'), '@nuxtjs/pwa',
require('@nuxtjs/meta'), '@nuxtjs/component-cache'
require('@nuxtjs/workbox'),
require('@nuxtjs/component-cache')
], ],
plugins: [ plugins: [
'~plugins/filters.js' '~plugins/filters.js'
......
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
"npm": ">=4.0" "npm": ">=4.0"
}, },
"dependencies": { "dependencies": {
"@nuxtjs/component-cache": "latest", "@nuxtjs/component-cache": "^0.1.3",
"@nuxtjs/manifest": "latest", "@nuxtjs/pwa": "latest",
"@nuxtjs/meta": "latest",
"@nuxtjs/workbox": "latest",
"firebase": "^4.1.1", "firebase": "^4.1.1",
"nuxt": "1.0.0-alpha.3", "nuxt": "1.0.0-alpha.3",
"stylus": "^0.54.5", "stylus": "^0.54.5",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment