Commit dc38d296 authored by pooya parsa's avatar pooya parsa

temporary workaround for modules

parent dc919e7c
// This is a temporary workaround to only enable modules for build time
module.exports = function () {
if (this.options._start) {
console.log('Skipping Modules...') // eslint-disable-line no-console
return
}
this.requireModule('@nuxtjs/pwa')
this.requireModule('@nuxtjs/axios')
}
......@@ -24,10 +24,7 @@ export default {
theme_color: '#188269'
},
modules: process.env.NODE_ENV === 'production' ? [] : [
'@nuxtjs/pwa',
'@nuxtjs/axios'
],
modules: [ '~/modules' ],
axios: {
baseURL: 'https://api.hnpwa.com/v0/'
......
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