DEPRECATED ❌❌ - Please use the webpack performance feature
Webpack plugin that provides hints for Performance.
Attempt at providing warnings and errors while bundling JS/CSS in Webpack. Inspired from this RFC.
npm i --save-dev perf-hints-plugin
yarn add -D perf-hints-plugin
// webpack.config.js
const PerfHintsPlugin = require("perf-hints-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new PerfHintsPlugin({
hints: true,
maxBundleSize: 200 // kB
})
]
}
hints
- Flag to Enable/Disable hints in the console. Default isfalse
maxBundleSize
- for setting the performance budget. Expressed in kiloBytes. Default value is250kB