webpack/webpack

Allow for multiple Performance Budgets

オープン

#7,753 opened on 2018/07/20

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (9,356 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (65,766 個のスター)
PR merge metrics
 (平均マージ 1d 5h) (30d で 180 merged PRs)

説明

Feature request

What is the expected behavior? Currently the performance budget plugin only accepts one configuration for assets in general. It should be possible to assign a performance budget for each different type of assets.

What is motivation or use case for adding/changing the behavior? If you want to have two different budgets for distinct types of files, it is currently not possible.

How should this be implemented in your opinion? The old implementation should still work, but it should be possible to instead add an array of of budget objects if you wish to set several budgets.

Are you willing to work on this yourself? yes

コントリビューターガイド