webpack-entries-plugin
Automatically detect webpack entries
Why
- Webpack watch option does not allow for detecting new entries
- I needed a solution that automatically scans folders and detect entry names
Installation
npm install --save-dev webpack-entries-plugin
Setup
In webpack.config.js
:
const WebpackEntriesPlugin = ;const resolve = resolve; moduleexports = ... entries: // `:name` will automatically be mapped as entry name plugins: ...