https://github.com/kripod/gatsby-plugin-preval
A Gatsby plugin for pre-evaluating code at build-time
https://github.com/kripod/gatsby-plugin-preval
Last synced: 9 months ago
JSON representation
A Gatsby plugin for pre-evaluating code at build-time
- Host: GitHub
- URL: https://github.com/kripod/gatsby-plugin-preval
- Owner: kripod
- License: mit
- Created: 2018-08-05T23:28:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T23:31:57.000Z (almost 8 years ago)
- Last Synced: 2025-06-04T21:44:16.734Z (about 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gatsby-plugin-preval
A [Gatsby][] plugin for pre-evaluating code at build-time using [babel-plugin-preval][].
[gatsby]: https://www.gatsbyjs.org/
[babel-plugin-preval]: https://github.com/kentcdodds/babel-plugin-preval
## Install
`npm install --save gatsby-plugin-preval babel-plugin-preval`
## How to use
Edit `gatsby-config.js`:
```js
module.exports = {
plugins: ['gatsby-plugin-preval'],
};
```
For examples of usage, please see the [readme of babel-plugin-preval][].
[readme of babel-plugin-preval]: https://github.com/kentcdodds/babel-plugin-preval#usage