Skip to content

Commit

Permalink
Update html documentation
Browse files Browse the repository at this point in the history
Hi,

The htmlnano setting key must be `minifySvg` and not `minifySVG` . This PR probably fixes parcel-bundler#441 

Ref: 
https://github.com/posthtml/htmlnano#minifysvg
parcel-bundler/parcel#1523 (comment)
  • Loading branch information
brodul authored Dec 23, 2020
1 parent c29bd1e commit b36b0ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/languages/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ The result should be:

If minification is enabled (e.g. `parcel build` without `--no-minify`) all bundles are automatically processed with [htmlnano](https://github.com/posthtml/htmlnano).

It can be configured according to its documentation with a .htmlnanorc (JSON) or .htmlnanorc.js file, for example to retain HTML comments
It can be configured according to its documentation with a .htmlnanorc (JSON) or .htmlnanorc.js file. Make sure to delete the .parcel-cache directory after changing htmlnano settings.

For example to retain HTML comments

{% sample %}
{% samplefile ".htmlnanorc" %}
Expand All @@ -294,7 +296,7 @@ or to not minify SVG elements.

```json
{
"minifySVG": false
"minifySvg": false
}
```

Expand Down

0 comments on commit b36b0ec

Please sign in to comment.