Skip to content

Commit

Permalink
docs(babel-preset-gatsby): document --save-dev flag in README (gatsby…
Browse files Browse the repository at this point in the history
…js#10434)

As it is documented on the preset READMe ([`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby)), it should be installed as a devDependency.
  • Loading branch information
enzoferey authored and gpetrioli committed Jan 22, 2019
1 parent 3338541 commit ddde3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/babel.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gatsby ships with a default .babelrc setup that should work for most sites. If y
to add custom Babel presets or plugins, you can create your own `.babelrc` at the root of your site, import [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby), and overwrite the `target` option.

```bash
npm install --save babel-preset-gatsby
npm install --save-dev babel-preset-gatsby
```

```json5:title=.babelrc
Expand Down

0 comments on commit ddde3de

Please sign in to comment.