true | Object | Function | undefined
false
Configure the Pug template engine.
Pug template engine is not enabled by default, you can enable it by setting tools.pug
to true
.
When enabled, you can use index.pug
as the template file in html.template
config.
When tools.terser
is Object
type, you can passing the Pug options:
For detailed options, please refer to Pug API Reference.
When tools.pug
is Function
type, the default configuration is passed in as the first parameter, the configuration object can be modified directly, or a value can be returned as the final result.