A utility function for webpack that converts glob patterns into entry objects, allowing multiple entry points to be specified via globs. Current stable version is 2.1.1, with no updates since January 2017. It simplifies webpack configuration by automating entry point discovery, supporting custom entry name functions and base path extraction. Unlike manual entry arrays or other glob plugins, it integrates directly into the entry field and provides helper functions for path manipulation. However, it has not been updated for webpack 4/5 and may have compatibility issues.
npm install webpack-glob-entryVerified import paths — ran on the pinned version, not inferred.
Uses webpack-glob-entry to generate a webpack entry object from a glob pattern, showing basic usage with a single glob.
Update custom entry name functions to accept a single argument; remove the unused index parameter.
Test with your webpack version; consider alternatives like 'glob' with manual entry mapping.
Use spread: entry(...globArray) or call entry with multiple string arguments.
Use const entry = require('webpack-glob-entry')Run npm install webpack-glob-entry --save-dev
Use const entry = require('webpack-glob-entry') without destructuring.No dependency data recorded yet.