mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
package updates
This commit is contained in:
parent
b3c266f821
commit
9d668b99cb
@ -1,5 +1,19 @@
|
||||
const path = require('path')
|
||||
|
||||
// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js
|
||||
exports.modifyWebpackConfig = ({ config, stage }) => {
|
||||
switch (stage) {
|
||||
case 'develop':
|
||||
config.preLoader('eslint-loader', {
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
})
|
||||
|
||||
break
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
||||
exports.createPages = ({ boundActionCreators, graphql }) => {
|
||||
const { createPage } = boundActionCreators
|
||||
|
||||
@ -59,17 +73,3 @@ exports.createPages = ({ boundActionCreators, graphql }) => {
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js
|
||||
exports.modifyWebpackConfig = ({ config, stage }) => {
|
||||
switch (stage) {
|
||||
case 'develop':
|
||||
config.preLoader('eslint-loader', {
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
})
|
||||
|
||||
break
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
"deploy": "./deploy.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"gatsby": "^1.9.254",
|
||||
"gatsby": "^1.9.255",
|
||||
"gatsby-link": "^1.6.41",
|
||||
"gatsby-plugin-google-analytics": "^1.0.31",
|
||||
"gatsby-plugin-react-helmet": "^2.0.11",
|
||||
@ -30,6 +30,7 @@
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.2.3",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-loader": "^2.0.0",
|
||||
"eslint-plugin-compat": "^2.2.0",
|
||||
"eslint-plugin-graphql": "^2.1.0",
|
||||
"eslint-plugin-prettier": "^2.6.0",
|
||||
|
Loading…
Reference in New Issue
Block a user