Registry / devops / webpack-entry-plus

webpack-entry-plus

JSON →
library1.0.19jsnpmunverified

Generate dynamic webpack bundle output names from wildcarded entry files using an array of entry/output definitions. Version 1.0.19 is the latest release; the package is stable but infrequently updated. It supports both string and function-based output name transformations, and integrates with glob for wildcard matching. Unlike manual entry configuration, it avoids hardcoding bundle names, which is useful for CMS or multi-page architectures. Requires webpack 4+ and works with Node.js. No breaking changes since initial release, but it is not actively maintained.

npm install webpack-entry-plus
INSTALL
IMPORT
SIG · WEBPACK-ENTRY-PLUS
W
webpack-entry-plus
devopsjavascriptv1.0.19
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

entryPlus
const entryPlus = require('webpack-entry-plus');
import entryPlus from 'webpack-entry-plus';
Package does not ship ESM; only CommonJS require works. Use default import via require.
entryPlus
const entryPlus = require('webpack-entry-plus');
const { entryPlus } = require('webpack-entry-plus');
Not a named export; the package exports a single function.
entryPlus
const entryPlus = require('webpack-entry-plus');
const eP = require('webpack-entry-plus').default;
No .default property; use direct require.

Shows how to configure webpack with dynamic entry names using glob patterns and a function for output name transformation.

// webpack.config.js const path = require('path'); const entryPlus = require('webpack-entry-plus'); const glob = require('glob'); const entryItems = [ { entryFiles: ['file1.js'], outputName: 'bundle1' }, { entryFiles: glob.sync('./pages/*.js'), outputName(item) { return item.replace('.js', '').replace(/^.*[\\/]/, ''); } } ]; module.exports = { entry: entryPlus(entryItems), output: { filename: '[name].js', path: path.resolve(__dirname, 'dist') } };
Debug
Known issues
gotchaPackage exposes only one function. Ensure you are requiring correctly as default.
fix
Use const entryPlus = require('webpack-entry-plus');
affects: >=1.0.0
gotchaThe entryFiles array must contain file paths relative to your webpack context or absolute paths. Glob patterns from glob.sync() return relative paths which may need adjustment.
fix
Resolve paths relative to webpack's context or use absolute paths with glob.sync(..., { cwd: ... })
affects: >=1.0.0
gotchaWhen using a function for outputName, it must return a string that will be used as the [name] in output. The function receives the full file path; ensure replacements produce valid filenames.
fix
Return a string that does not contain path separators (use replace to strip directories).
affects: >=1.0.0
gotchaIf outputName is a string, all entryFiles will be bundled into a single output chunk. This may not be intended if you want separate bundles.
fix
Use a function for outputName when you need separate bundles per entry file.
affects: >=1.0.0
gotchaThe package does not support webpack 5's new entry descriptor syntax (e.g., { import, dependOn }). Only an array of strings is accepted per entryFiles item.
fix
Use webpack's native entry configuration or another plugin if you need advanced entry features.
affects: >=1.0.0
gotchaNo type definitions provided. TypeScript users need to create a custom declaration file.
fix
Add a .d.ts file: declare module 'webpack-entry-plus' { const entryPlus: (entries: EntryItem[]) => any; export default entryPlus; }
affects: >=1.0.0
gotchaThe package uses require('glob') internally if not passed? No, it expects you to pass glob results. You must install glob separately.
fix
npm install --save-dev glob
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'webpack-entry-plus'
Missing install or incorrect import path.
fix
Install: npm install --save-dev webpack-entry-plus, then use require('webpack-entry-plus')
TypeError: entryPlus is not a function
Incorrect import: using default import with ES module syntax or destructuring.
fix
Use const entryPlus = require('webpack-entry-plus');
Error: The 'entry' option must be an object, function, or string
Passing an invalid entry object, typically because outputName is not a string or function.
fix
Ensure each item in the array has a outputName that is either a string or a function returning a string.
Module not found: Error: Can't resolve 'glob'
Glob is not installed, but it is required only if you use glob.sync in your config.
fix
Install glob: npm install --save-dev glob
Upgrade
Version history
1.0.19latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
webpack-entry-plus — npm install webpack-entry-plus · libregistry