Skip to content

Commit f6239cf

Browse files
committed
docs: edit README
2 parents d0937af + be9b165 commit f6239cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ git clone [email protected]:ruanyf/webpack-demos.git
1818

1919
# Windows
2020
$ git clone https://github.com/ruanyf/webpack-demos.git
21-
21+
:
2222
$ cd webpack-demos
2323
$ npm install
2424
```
@@ -292,7 +292,7 @@ module.exports = {
292292

293293
Attention, you have to use two loaders to transform CSS file. First is [CSS-loader](https://www.npmjs.com/package/css-loader) to read CSS file, and another is [Style-loader](https://www.npmjs.com/package/style-loader) to insert Style tag into HTML page. Different loaders are linked by exclamation mark(!).
294294

295-
After launching the server, `index.html` will have inline style.
295+
After launching the server, `index.html` will have internal style sheet.
296296

297297
```html
298298
<head>
@@ -347,7 +347,7 @@ module.exports = {
347347
};
348348
```
349349

350-
[url-loader](https://www.npmjs.com/package/url-loader) transforms image files. If the image size is smaller than 8192 bytes, it will be transformed into Data URL; otherwise, it will be transformed into normal URL. As you see, question mark(?) is be used to pass parameters into loaders.
350+
[url-loader](https://www.npmjs.com/package/url-loader) transforms image files. If the image size is smaller than 8192 bytes, it will be transformed into Data URL; otherwise, it will be transformed into normal URL. As you see, question mark(?) is used to pass parameters into loaders.
351351

352352
After launching the server, `small.png` and `big.png` will have the following URLs.
353353

@@ -931,7 +931,7 @@ index.js
931931

932932
```javascript
933933
import React from 'react';
934-
import ReactDOM = require('react-dom');
934+
import ReactDOM from 'react-dom';
935935
import App from './App';
936936

937937
ReactDOM.render(<App />, document.getElementById('root'));

0 commit comments

Comments
 (0)