7.2.3-kiba.3 • Published 4 years ago

@kibalabs/react-static-plugin-source-filesystem v7.2.3-kiba.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-static-plugin-source-filesystem

A React-Static plugin that adds support for recursively importing routes from a directory

This means that any files in your projects pages/ directory will be turned into static routes.

Example:

  • src/pages/index.js - would produce a route with the path of / and the template set to src/pages/index.js
  • src/pages/about/us.js - would produce a route with the page of /about/us and the template set to src/pages/about/us.js

Installation

In an existing react-static site run:

$ yarn add react-static-plugin-source-filesystem

Then add the plugin to your static.config.js with a valid location directory in the options:

...
import path from 'path'
...
export default {
  plugins: [
    [
      'react-static-plugin-source-filesystem',
      {
        location: path.resolve('./src/pages'),
      },
    ],
  ],
}
7.2.3-kiba.3

4 years ago

7.2.3-kiba.2

4 years ago

7.2.3-kiba.1

4 years ago

7.2.3-kiba.0

4 years ago

7.2.3-alpha.6

4 years ago

7.2.3-alpha.5

4 years ago

7.2.3-alpha.3

4 years ago

7.2.3-alpha.4

4 years ago

7.2.3-alpha.1

4 years ago

7.2.3-alpha.2

4 years ago

7.2.3-alpha

4 years ago

7.2.3-alpha.0

4 years ago

7.3.0

4 years ago

7.2.3

4 years ago