mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
refactor: gatsby-browser, gatsby-node
adds .eslintcache to gitignore
This commit is contained in:
parent
84cd888614
commit
7b8b07b05a
@ -6,9 +6,9 @@
|
|||||||
"import"
|
"import"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"global-require": [0],
|
||||||
"react/jsx-filename-extension": [0],
|
"react/jsx-filename-extension": [0],
|
||||||
"react/prefer-es6-class": [0],
|
"react/prefer-es6-class": [0],
|
||||||
"global-require": [0],
|
|
||||||
"react/prefer-stateless-function": [0],
|
"react/prefer-stateless-function": [0],
|
||||||
/* to allow importing 'gatsby-helpers' */
|
/* to allow importing 'gatsby-helpers' */
|
||||||
"import/no-extraneous-dependencies": [0],
|
"import/no-extraneous-dependencies": [0],
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
public
|
public
|
||||||
|
|
||||||
.gatsby-context.js
|
.gatsby-context.js
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import ReactGA from 'react-ga'
|
import ReactGA from 'react-ga';
|
||||||
import {config} from 'config'
|
import { config } from 'config';
|
||||||
|
|
||||||
ReactGA.initialize(config.googleAnalyticsId);
|
ReactGA.initialize(config.googleAnalyticsId);
|
||||||
|
|
||||||
exports.onRouteUpdate = (state, page, pages) => {
|
exports.onRouteUpdate = (state) => {
|
||||||
ReactGA.pageview(state.pathname);
|
ReactGA.pageview(state.pathname);
|
||||||
};
|
};
|
@ -1,22 +1,22 @@
|
|||||||
var rucksack = require('rucksack-css')
|
const rucksack = require('rucksack-css');
|
||||||
var lost = require("lost")
|
const lost = require('lost');
|
||||||
var cssnext = require("postcss-cssnext")
|
const cssnext = require('postcss-cssnext');
|
||||||
|
|
||||||
exports.modifyWebpackConfig = function(config, env) {
|
exports.modifyWebpackConfig = function (config) {
|
||||||
config.merge({
|
config.merge({
|
||||||
postcss: [
|
postcss: [
|
||||||
lost(),
|
lost(),
|
||||||
rucksack(),
|
rucksack(),
|
||||||
cssnext({
|
cssnext({
|
||||||
browsers: ['>1%', 'last 2 versions']
|
browsers: ['>1%', 'last 2 versions'],
|
||||||
})
|
}),
|
||||||
]
|
],
|
||||||
})
|
});
|
||||||
|
|
||||||
config.loader('svg', {
|
config.loader('svg', {
|
||||||
test: /\.(svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
test: /\.(svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
})
|
});
|
||||||
|
|
||||||
return config
|
return config;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user