developit / developit/microbundle

[Docs] Mention that in mangle.json, the mangle object should be set under "minify" object

Aberta
#789 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
8.1k
Forks
358
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

In both [Readme](https://github.com/developit/microbundle/blob/master/README.md) and [mangle.json wiki page](https://github.com/developit/microbundle/wiki/mangle.json), it mentions about how to mangle properties using mangle.json file.

It said:

> This can be done in a mangle.json configuration file, [.....] follow the same object format:

```
{
"mangle": {
"properties": {
"regex": "^_"
}
}
}
```

I assumed that mangle.json can contain exactly that, but apparently, after reading microbundle's source code, mangle.json expects that the configuration to be parked under "minify". So mangle.json should look something like this:

```
{
"minify": {
"mangle": {
"properties": {
"regex": "^_"
}
}
}
}
```

Looks like this behavior is not documented anywhere 😅

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.