{"library":"speed-measure-webpack-plugin","title":"speed-measure-webpack-plugin","type":"library","description":"Measure and analyse the speed of your webpack loaders and plugins. Current stable version is 1.6.0, released in 2024 after a period of inactivity. Supports webpack 1 through 5, Node >=6. Key differentiator: it wraps your existing webpack config to add timing instrumentation without modifying your original configuration. Output can be human-readable, JSON, or custom. Commonly used to identify bottlenecks in build performance. Active development now maintained by 18ways.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install speed-measure-webpack-plugin"],"cli":null},"imports":["const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');\nconst smp = new SpeedMeasurePlugin();\nconst wrappedConfig = smp.wrap(originalConfig);","const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');","const wrappedConfig = smp.wrap(originalConfig);"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/stephencookdev/speed-measure-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/speed-measure-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');\nconst path = require('path');\n\nconst smp = new SpeedMeasurePlugin({\n  outputFormat: 'human',\n  outputTarget: console.log,\n});\n\nconst webpackConfig = {\n  entry: './src/index.js',\n  output: {\n    path: path.resolve(__dirname, 'dist'),\n    filename: 'bundle.js',\n  },\n  plugins: [\n    new (require('webpack').DefinePlugin)({ 'process.env.NODE_ENV': JSON.stringify('production') }),\n  ],\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        exclude: /node_modules/,\n        use: {\n          loader: 'babel-loader',\n        },\n      },\n    ],\n  },\n};\n\nconst wrappedConfig = smp.wrap(webpackConfig);\nmodule.exports = wrappedConfig;","lang":"javascript","description":"Basic setup wrapping a webpack config with SMP to measure build times.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}