Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
dc38d296
Commit
dc38d296
authored
Feb 24, 2019
by
pooya parsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary workaround for modules
parent
dc919e7c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
modules.js
modules.js
+9
-0
nuxt.config.js
nuxt.config.js
+1
-4
No files found.
modules.js
0 → 100644
View file @
dc38d296
// 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'
)
}
nuxt.config.js
View file @
dc38d296
...
...
@@ -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/'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment