Skip to content

Commit

Permalink
edit README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Aug 14, 2015
1 parent c500a09 commit b11bf0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ Some command-line options you should know.

## Demo01: Entry file ([source](https://github.com/ruanyf/webpack-demos/tree/master/demo01))

Entry file is a file which Webpack will read to build bundle.js. For example, `main.js` is an entry file.
Entry file is a file which Webpack will read to build bundle.js.

For example, `main.js` is an entry file.

```javascript
// main.js
Expand Down Expand Up @@ -295,7 +297,7 @@ module.exports = {
};
```

[`url-loader`](https://www.npmjs.com/package/url-loader) transforms image files. If the image size is bigger 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.
[url-loader](https://www.npmjs.com/package/url-loader) transforms image files. If the image size is bigger 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.

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

Expand Down

0 comments on commit b11bf0f

Please sign in to comment.