Skip to content

jean-smaug/gatsby-plugin-replace-paths

master
Switch branches/tags
Code
This branch is 9 commits ahead of wyze:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gatsby-plugin-replace-paths

npm

A Gatsby plugin to replace page paths.

Installation

Yarn

$ yarn add --dev gatsby-plugin-replace-paths

npm

$ npm install --save-dev gatsby-plugin-replace-paths

Usage

// gatsby-config.js

module.exports = {
  // ...
  plugins: [
    {
      resolve: "gatsby-plugin-replace-paths",
      options: {
        config: [
          {
            pattern: "/about",
            replacement: "/a-propos",
          },
          {
            pattern: /(e)/g,
            replacement: (_, match) => match.toUpperCase(),
          },
        ],
      },
    },
  ],
};

License

MIT © Maxime Blanc Fork of Neil Kistner

About

A Gatsby plugin to replace page paths.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%