docs: migrate website to Gatsby v2 (#1623)

* website: initial conversion to gatsby v2

* fix unexpected history use warning

* use commonjs only to fix gatsby error

* fix gatsby import error with sidecar

* remove unused postcss-colour-functions

* remove unused prop

* lowercase layout filename import to match actual file

* chore(lint): format code
This commit is contained in:
Zeb Pykosz
2018-08-23 17:58:38 -04:00
committed by Caleb
parent a1677b0e24
commit f58db5fb08
17 changed files with 4084 additions and 4662 deletions

19
website/postcss.config.js Normal file
View File

@ -0,0 +1,19 @@
const neatgrid = require('postcss-neat');
const nestedcss = require('postcss-nested');
// const colorfunctions = require('postcss-colour-functions');
const hdBackgrounds = require('postcss-at2x');
const cssextend = require('postcss-simple-extend');
const cssvars = require('postcss-simple-vars-async');
const styleVariables = require('./src/theme');
module.exports = () => ({
plugins: [
neatgrid(),
nestedcss(),
// colorfunctions(),
hdBackgrounds(),
cssextend(),
cssvars({ variables: styleVariables }),
],
});