Skip to content

Commit 356a169

Browse files
committed
Merge branch 'release/0.3.0'
2 parents 5726a55 + ffdb1b4 commit 356a169

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,18 @@ You can pass options to PEG.js as [query parameters](http://webpack.github.io/do
4747
* `cache` — if `true`, makes the parser cache results, avoiding exponential
4848
parsing time in pathological cases but making the parser slower (default:
4949
`false`)
50-
50+
51+
* `optimize` - whether to optimize the built parser either for `speed` or
52+
`size` (default: `speed`)
53+
5154
``` js
5255
module.exports = {
5356
...
5457
module: {
5558
loaders: [
5659
{
5760
test: /\.pegjs$/,
58-
loader: 'pegjs-loader?cache=true'
61+
loader: 'pegjs-loader?cache=true&optimize=size'
5962
}
6063
]
6164
}
@@ -73,4 +76,4 @@ Every release, along with the migration instructions, if any, is documented on t
7376

7477
## License
7578

76-
MIT (http://www.opensource.org/licenses/mit-license.php)
79+
MIT (http://www.opensource.org/licenses/mit-license.php)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pegjs-loader",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "PEG.js loader for webpack",
55
"authors": [
66
"Andrey Subbotin <[email protected]> (https://github.com/eploko)",

0 commit comments

Comments
 (0)