0.0.5 • Published 8 years ago

perf-hints-plugin v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

perf-hints-plugin

Webpack plugin that provides hints for Performance.

Attempt at providing warnings and errors while bundling JS/CSS in Webpack. Inspired from this RFC.

Features

  • Monolithic bundle size warnings. monolith

  • Code splitted bundles exceed given max size. code-split

Install

npm i --save-dev perf-hints-plugin
yarn add -D perf-hints-plugin

Usage

// webpack.config.js
const PerfHintsPlugin = require("perf-hints-plugin");
module.exports = {
  entry: //...,
  output: //...,
  plugins: [
    new PerfHintsPlugin({
        hints: true,
        maxBundleSize: 200 // kB
    })
  ]
}

Options

  • hints - Flag to Enable/Disable hints in the console. Default is false
  • maxBundleSize - for setting the performance budget. Expressed in kiloBytes. Default value is 250kB
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago