developit / developit/microbundle

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

オープン
#789 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
8.1k
フォーク
358
PR マージ指標
30日以内にマージされた PR はありません

説明

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 😅

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。