Merge pull request #45 from Bouncey/fix/ui

Fix up the UI and pull in the latest seed files
This commit is contained in:
Stuart Taylor
2018-05-18 14:54:21 +01:00
committed by Mrugesh Mohapatra
parent 04a6a2026c
commit f962d7774a
105 changed files with 7019 additions and 9431 deletions

View File

@@ -38,7 +38,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators;
return new Promise((resolve, reject) => {
// Query for all markdown "nodes" and for the slug we previously created.
// Query for all markdown 'nodes' and for the slug we previously created.
resolve(
graphql(`
{
@@ -140,3 +140,22 @@ exports.modifyWebpackConfig = ({ config, stage }) => {
]);
});
};
/* eslint-disable prefer-object-spread/prefer-object-spread */
exports.modifyBabelrc = ({ babelrc }) =>
Object.assign({}, babelrc, {
plugins: babelrc.plugins.concat([
[
'transform-imports',
{
'react-bootstrap': {
transform: 'react-bootstrap/lib/${member}',
preventFullImport: true
},
lodash: {
transform: 'lodash/${member}',
preventFullImport: true
}
}
]
])
});