multi-entry-plugin
v0.0.3
Published
set webpack multiple entry by single entry.
Downloads
11
Readme
multi-entry-plugin
set webpack multiple entry by single entry.
Install
npm i multi-entry-plugin --save-dev
Example
src:
├── src
| ├── public
| | ├── index.js
| ├── page
| | ├── index.js
| └── index.js
webpack.config.js:
import MultiEntryPlugin from 'multi-entry-plugin';
const config = {
entry: {
'app': './src/index.js'
},
// ...
plugins: [
new MultiEntryPlugin({
// plugin will depend the directory of 'mainEntry' to set multiple entry.
mainEntry: 'app',
exclude: ['util/**/*.js']
})
]
}
dist:
├── dist
| ├── public
| | ├── index.js
| ├── page
| | ├── index.js
| └── index.js