gatsby-plugin-replace-paths

    1.0.1 • Public • Published

    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

    Install

    npm i gatsby-plugin-replace-paths

    DownloadsWeekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.14 kB

    Total Files

    6

    Last publish

    Collaborators

    • jean-smaug