Skip to content

Commit

Permalink
docs(babel-preset-gatsby): document --save-dev flag in README (#10434)
Browse files Browse the repository at this point in the history
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 DSchau committed Dec 12, 2018
1 parent 94255a3 commit c12336a
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 c12336a

Please sign in to comment.