fix(api, client): update Gatsby, webpack & related things (#41452)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Mrugesh Mohapatra
2021-03-26 00:43:43 +05:30
committed by GitHub
parent 92dfb3065c
commit ad9b1f89d8
71 changed files with 35182 additions and 9001 deletions

View File

@ -1,17 +1,13 @@
const path = require('path');
const {
clientLocale,
curriculumLocale,
homeLocation
} = require('../config/env.json');
const envData = require('../config/env.json');
const {
buildChallenges,
replaceChallengeNode,
localeChallengesRootDir
} = require('./utils/buildChallenges');
const { clientLocale, curriculumLocale, homeLocation } = envData;
const curriculumIntroRoot = path.resolve(__dirname, './src/pages');
const pathPrefix =
clientLocale === 'english' || clientLocale === 'chinese'
@ -84,20 +80,20 @@ module.exports = {
}
}
},
{
resolve: `gatsby-plugin-advanced-sitemap`,
options: {
exclude: [
`/dev-404-page`,
`/404`,
`/404.html`,
`/offline-plugin-app-shell-fallback`,
`/learn`,
/(\/)learn(\/)\S*/
],
addUncaughtPages: true
}
},
// {
// resolve: `gatsby-plugin-advanced-sitemap`,
// options: {
// exclude: [
// `/dev-404-page`,
// `/404`,
// `/404.html`,
// `/offline-plugin-app-shell-fallback`,
// `/learn`,
// /(\/)learn(\/)\S*/
// ],
// addUncaughtPages: true
// }
// },
{
resolve: 'gatsby-plugin-manifest',
options: {