Utility to generate webpack entry points from glob patterns. Current stable version is 1.0.0, released with low frequency. Converts glob matches into arrays or objects (keyed by file name or relative path) suitable for webpack's entry configuration. No dependencies. Lightweight alternative to manual entry definition.
npm install webpack-entriesVerified import paths — ran on the pinned version, not inferred.
Shows how to require webpack-entries and use it in a webpack config to generate entry points from a glob pattern, producing an object with file name keys.
Ensure glob pattern yields unique base file names or use nested patterns with /**/ to include path in keys.
Wrap call in try-catch or ensure pattern matches at least one file.
Use dynamic import or CommonJS require in an ES module context: const entries = await import('webpack-entries').then(m => m.default);Run: npm install webpack-entries --save-dev
Use const entries = require('webpack-entries'); or const { default: entries } = await import('webpack-entries');No dependency data recorded yet.