Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83bbcdc

Browse files
committed
Updated readme with the latest and greatest
1 parent a5e615e commit 83bbcdc

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

‎README.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You have now created an initial [package.json](https://github.com/jansoren/react
7070
```
7171

7272
1. Install React DOM and add it to your package.json file automatically using `npm install --save react react-dom`
73-
1. Install Babel to transform the content of a .js file from ES6 to ES5 `npm install --save-dev babel-preset-react babel-preset-es2015 babel-core babel-loader`
73+
1. Install Babel to transform the content of a .js file from ES6 to ES5 `npm install --save-dev babel-core babel-loader babel-preset-env babel-preset-react`
7474
1. In your `webpack.config.js` add the babel-loader that you just installed like this:
7575
```javascript
7676
var config = {
@@ -82,11 +82,11 @@ You have now created an initial [package.json](https://github.com/jansoren/react
8282
exclude: /node_modules/,
8383
loader: 'babel-loader',
8484
query: {
85-
presets: ['react', 'es2015']
85+
presets: ['react', 'env']
8686
}
8787
}
8888
],
89-
},
89+
}
9090
};
9191
```
9292

@@ -107,12 +107,13 @@ You have now created an initial [package.json](https://github.com/jansoren/react
107107

108108
1. Run command `webpack` in your main folder that will result in something like this:
109109
```
110-
Hash: dd141258ef660950584c
111-
Version: webpack 1.12.11
112-
Time: 3711ms
113-
Asset Size Chunks Chunk Names
114-
bundle.js 676 kB 0 [emitted] main
115-
+ 159 hidden modules
110+
Hash: 35d746ba5bf01c587890
111+
Version: webpack 3.10.0
112+
Time: 829ms
113+
Asset Size Chunks Chunk Names
114+
bundle.js 728 kB 0 [emitted] [big] main
115+
[81] ./main.js 572 bytes {0} [built]
116+
+ 183 hidden modules
116117
```
117118

118119
1. Open `/dist/index.html` to see your client side application

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /