Coder Social home page Coder Social logo

gatsby-disable-404's Introduction

Gatsby Plugin: Disable 404

MIT License CircleCI NPM

Disable /404 and /dev-404-page pages.

Install

# With Yarn
$ > yarn add -D gatsby-disable-404

# With NPM
$ > npm install --save-dev gatsby-disable-404

Configuration

// gatsby-config.js

module.exports = {
  siteMetadata: {
    title: "Gatsby Default Starter"
  },
  plugins: ["gatsby-disable-404"]
};

License

Feel free to use the code, it's released using the MIT license.

Contribution

You are welcome to contribute to this project! ๐Ÿ˜˜

To make sure you have a pleasant experience, please read the code of conduct. It outlines core values and beliefs and will make working together a happier experience.

gatsby-disable-404's People

Contributors

sbstjn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gatsby-disable-404's Issues

Plugin freezes build process

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 */
],
}

Plugin causes "JavaScript heap out of memory" error

This plugin breaks build process on createPages stage and causes the following error:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I don't recommend using this plugin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.