Socket
Socket
Sign inDemoInstall

gatsby-plugin-page-creator

Package Overview
Dependencies
Maintainers
21
Versions
540
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


Version published
Weekly downloads
227K
decreased by-15.22%
Maintainers
21
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 08 Sep 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