Skip to content

Commit

Permalink
Readme: fix args for UglifyJS 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tkareine committed Aug 5, 2017
1 parent f89877a commit 02ef772
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ And then specify the minifier command in `_config.yml`:
minibundle:
minifier_commands:
css: _bin/remove_whitespace
js: node_modules/.bin/uglifyjs -
js: node_modules/.bin/uglifyjs
```

#### `minibundle` call syntax
Expand Down Expand Up @@ -273,14 +273,14 @@ You can specify minifier commands in three places:
minibundle:
minifier_commands:
css: _bin/remove_whitespace
js: node_modules/.bin/uglifyjs -
js: node_modules/.bin/uglifyjs
```

2. as environment variables:

``` bash
export JEKYLL_MINIBUNDLE_CMD_CSS=_bin/remove_whitespace
export JEKYLL_MINIBUNDLE_CMD_JS="node_modules/.bin/uglifyjs -"
export JEKYLL_MINIBUNDLE_CMD_JS="node_modules/.bin/uglifyjs"
```

3. inside the `minibundle` block with `minifier_cmd` option, allowing
Expand All @@ -290,7 +290,7 @@ You can specify minifier commands in three places:
{% minibundle js %}
source_dir: _assets/scripts
destination_path: assets/site
minifier_cmd: node_modules/.bin/uglifyjs -
minifier_cmd: node_modules/.bin/uglifyjs
assets:
- dependency
- app
Expand Down

0 comments on commit 02ef772

Please sign in to comment.