greglebreton 4e8a693745
Some checks failed
continuous-integration/drone/push Build is failing
add garagenum exp + maj url site projets
2023-01-08 16:50:31 +01:00

749 B

Config

There are two main ways to configure htmlnano:

Passing options to htmlnano directly

This is the way described above in the examples.

Using configuration file

Alternatively, you might create a configuration file (e.g., htmlanorc.json or htmlnanorc.js) or save options to package.json with htmlnano key. htmlnano uses cosmiconfig, so refer to its documentation for a more detailed description.

If you want to specify a preset that way, use preset key:

{
    "preset": "max",
}

Configuration files have lower precedence than passing options to htmlnano directly. So if you use both ways, then the configuration file would be ignored.