{"id":20749,"library":"webpack-dll-bundles-plugin","title":"webpack-dll-bundles-plugin","description":"A Webpack plugin that automates creation of DLL bundles using Webpack's DllPlugin and DllReferencePlugin. This package (v1.0.0-beta.5) is an early beta release; it simplifies splitting vendor/polyfill code into separate DLL files, monitors package changes for rebuilds, and provides a resolveFile helper. It is intended for Webpack 3/4 but has known issues with newer versions. Development appears stalled, with no updates since 2017. Alternatives: hard-source-webpack-plugin or Webpack's built-in cache.","status":"deprecated","version":"1.0.0-beta.5","language":"javascript","source_language":"en","source_url":"https://github.com/shlomiassaf/webpack-dll-bundles-plugin","tags":["javascript","typescript"],"install":[{"cmd":"npm install webpack-dll-bundles-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-dll-bundles-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-dll-bundles-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; requires DllPlugin and DllReferencePlugin available in Webpack 3/4.","package":"webpack","optional":false}],"imports":[{"note":"Package uses CommonJS; ES module import may fail in Node environments.","wrong":"import DllBundlesPlugin from 'webpack-dll-bundles-plugin';","symbol":"DllBundlesPlugin","correct":"const DllBundlesPlugin = require('webpack-dll-bundles-plugin');"},{"note":"resolveFile is a static method on DllBundlesPlugin, not a standalone export.","wrong":"resolveFile('polyfills')","symbol":"resolveFile","correct":"DllBundlesPlugin.resolveFile('polyfills')"},{"note":"Destructured require works because the plugin exports an object with the constructor.","wrong":"","symbol":"DllBundlesPlugin","correct":"const { DllBundlesPlugin } = require('webpack-dll-bundles-plugin');"}],"quickstart":{"code":"const DllBundlesPlugin = require('webpack-dll-bundles-plugin');\nconst webpackMerge = require('webpack-merge');\nconst commonConfig = require('./webpack.common.js');\n\nmodule.exports = {\n  plugins: [\n    new DllBundlesPlugin({\n      bundles: {\n        polyfills: ['core-js', 'zone.js'],\n        vendor: ['react', 'react-dom']\n      },\n      dllDir: './dll',\n      webpackConfig: webpackMerge(commonConfig, {\n        devtool: 'cheap-module-source-map',\n        plugins: []\n      })\n    })\n  ]\n};","lang":"javascript","description":"Creates DLL bundles for polyfills and vendor libraries, merging a common webpack config."},"warnings":[{"fix":"Consider using hard-source-webpack-plugin or Webpack's built-in persistent caching.","message":"Plugin is unmaintained and incompatible with Webpack 5; use at your own risk.","severity":"deprecated","affected_versions":">=1.0.0-beta.5"},{"fix":"Define bundles in the plugin config, not in the base webpack config.","message":"The plugin overrides webpackConfig entry and adds DllPlugin automatically; custom entry in webpackConfig will be ignored.","severity":"gotcha","affected_versions":"*"},{"fix":"Always use DllBundlesPlugin.resolveFile() to get DLL filenames.","message":"resolveFile() returns a filename with a specific template that may change; do not hardcode DLL filenames.","severity":"gotcha","affected_versions":"*"},{"fix":"Manually trigger rebuild or watch using webpack --watch.","message":"The plugin may not automatically rebuild DLLs when packages update; watch functionality is listed as TODO.","severity":"gotcha","affected_versions":"1.0.0-beta.5"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install webpack-dll-bundles-plugin@1.0.0-beta.5 --save-dev'","cause":"Package missing after npm install; possibly not installed or wrong version.","error":"Module not found: Error: Can't resolve 'webpack-dll-bundles-plugin'"},{"fix":"Use 'const DllBundlesPlugin = require('webpack-dll-bundles-plugin');'","cause":"Incorrect import style; default import may not be a function.","error":"TypeError: DllBundlesPlugin is not a constructor"},{"fix":"Add 'webpackConfig' to the options object (path or config object).","cause":"Missing webpackConfig property in plugin options.","error":"Error: DllBundlesPlugin requires webpackConfig"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}