Finds and returns entry point files in a custom folder
npm install --save-dev git+https://github.com/superReal/webpack-glob-entries.git
const globEntries = require( 'webpack-glob-entries' )
{
entry: globEntries( '/root/path/project', '/**/*.entry.js' ),
output: {
filename: '[name].js'
}
}
Parameter | Description | Required | Default |
---|---|---|---|
rootPath |
Root path of glob path | ✔️ | |
globPath |
Glob path for entry points | ✔️ | |
entryExt |
Extension of entry point files | .entry.js |