Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
030a1ed6
Commit
030a1ed6
authored
Dec 29, 2016
by
Tim Neutkens
Committed by
Dan Zajdband
Dec 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up docs about next/babel (#557)
* Clean up docs about next/babel * Add suggestions from #553
parent
31703d4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
README.md
README.md
+7
-4
No files found.
README.md
View file @
030a1ed6
...
@@ -457,8 +457,13 @@ module.exports = {
...
@@ -457,8 +457,13 @@ module.exports = {
### Customizing babel config
### Customizing babel config
In order to extend our usage of
`babel`
, you can simply define a
`.babelrc`
file in the root of your app.
In order to extend our usage of
`babel`
, you can simply define a
`.babelrc`
file at the root of your app. This file is optional.
If found, we'll use it. Here's an example
`.babelrc`
file:
If found, we're going to consider it the
*source of truth*
, therefore it needs to define what next needs as well, which is the
`next/babel`
preset.
This is designed so that you are not surprised by modifications we could make to the babel configurations.
Here's an example
`.babelrc`
file:
```
js
```
js
{
{
...
@@ -469,8 +474,6 @@ If found, we'll use it. Here's an example `.babelrc` file:
...
@@ -469,8 +474,6 @@ If found, we'll use it. Here's an example `.babelrc` file:
}
}
```
```
Although it's not required, you will need to add
`next/babel`
as a preset. That's the default preset we use for all Next.js apps.
## Production deployment
## Production deployment
To deploy, instead of running
`next`
, you probably want to build ahead of time. Therefore, building and starting are separate commands:
To deploy, instead of running
`next`
, you probably want to build ahead of time. Therefore, building and starting are separate commands:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment