entry-watch-webpack-plugin
watch entry change for MPA
Install
npm install entry-watch-webpack-plugin --save-dev
Usage
配合 dynamic-entry,
const path = ;const EntryWatchWebpackPlugin = ; const entryRoot = path; moduleexports = async { // 这里获取多入口配置, 需要自己实现 const entries = await ; return entries; } mode: 'development' output: path: path plugins: entryRoot ;