Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-page-creator

Package Overview
Dependencies
Maintainers
20
Versions
542
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-page-creator

Gatsby plugin that automatically creates pages from React components in specified directories

  • 2.2.3-unifiedroutes-blog.26
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
121K
decreased by-51.63%
Maintainers
20
Weekly downloads
 
Created

What is gatsby-plugin-page-creator?

The gatsby-plugin-page-creator package is a Gatsby plugin that automatically creates pages from React components in specified directories. This helps streamline the process of adding new pages to a Gatsby site by eliminating the need to manually configure each page in the gatsby-node.js file.

What are gatsby-plugin-page-creator's main functionalities?

Automatic Page Creation

Automatically creates pages from React components located in the specified directory (`src/pages` in this example).

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-page-creator`,
      options: {
        path: `${__dirname}/src/pages`,
      },
    },
  ],
};

Custom Path Configuration

Allows you to specify a custom directory (`src/custom-pages` in this example) from which to create pages.

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-page-creator`,
      options: {
        path: `${__dirname}/src/custom-pages`,
      },
    },
  ],
};

File Extension Support

Supports multiple file extensions for page components, such as `.js`, `.jsx`, `.ts`, and `.tsx`.

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-page-creator`,
      options: {
        path: `${__dirname}/src/pages`,
        extensions: [`.js`, `.jsx`, `.ts`, `.tsx`],
      },
    },
  ],
};

Other packages similar to gatsby-plugin-page-creator

Keywords

FAQs

Package last updated on 09 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc