sbstjn / gatsby-disable-404

Disable 404 pages for Gatsby websites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin freezes build process

megant opened this issue · comments

This plugin freezes my gatsby develop task at createPages phase. My gatsby-config.js looks like this

module.exports = {
siteMetadata: {
title: 'Stuff',
description: 'Stuff',
author: 'Mr Stuff'
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
// keep as first gatsby-source-filesystem plugin for gatsby image support
resolve: 'gatsby-source-filesystem',
options: {
path: ${__dirname}/static/images,
name: 'uploads',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: ${__dirname}/content/pages,
name: 'pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: ${__dirname}/src/images,
name: 'images',
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-transformer-remark',
options: {
name: 'pages',
plugins: [
{
resolve: 'gatsby-remark-relative-images',
options: {
name: 'uploads',
},
},
{
resolve: 'gatsby-remark-images',
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 2048,
},
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
destinationDir: 'static',
},
},
],
},
},
{
resolve:'gatsby-plugin-purgecss', // purges all unused/unreferenced css rules
options: {
develop: true, // Activates purging in npm run develop
purgeOnly: ['/all.sass'], // applies purging only on the bulma css file
},
}, // must be after other CSS plugins
{
resolve: 'gatsby-plugin-i18n',
options: {
langKeyDefault: 'hu',
useLangKeyLayout: false,
pagesPath: [${__dirname}/src/content/pages],
}
},
'gatsby-disable-404',
/*'gatsby-plugin-netlify', // make sure to keep it last in the array */
],
}