chore(client): update gatsby

This commit is contained in:
Valeriy S
2019-08-15 17:30:34 +03:00
committed by Mrugesh Mohapatra
parent 15a74a9ee7
commit 052769e69f
3 changed files with 1255 additions and 678 deletions

View File

@ -137,24 +137,8 @@ exports.createPages = function createPages({ graphql, actions }) {
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
exports.onCreateWebpackConfig = ({ stage, rules, plugins, actions }) => {
exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
actions.setWebpackConfig({
module: {
rules: [
rules.js({
/* eslint-disable max-len */
exclude: modulePath => {
return (
/node_modules/.test(modulePath) &&
!/(ansi-styles|chalk|strict-uri-encode|react-freecodecamp-search)/.test(
modulePath
)
);
}
/* eslint-enable max-len*/
})
]
},
node: {
fs: 'empty'
},