Skip to content

Commit

Permalink
Updated documentation to match webpack v2 changes. (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagzviruz authored and Couto committed Apr 9, 2017
1 parent e20f6b6 commit 74ff2e6
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ __Note:__ If you're upgrading from babel 5 to babel 6, please take a look [at th

```javascript
module: {
loaders: [
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['env']
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
}
]
Expand All @@ -54,7 +56,7 @@ You can pass options to the loader by writing them as a [query string](https://g

```javascript
module: {
loaders: [
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
Expand All @@ -68,13 +70,15 @@ module: {

```javascript
module: {
loaders: [
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['env']
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
}
]
Expand Down

0 comments on commit 74ff2e6

Please sign in to comment.