Webpack-watched-glob-entries-plugin
提供了一种在 Webpack watch和non-watch模式下对入口文件进行 glob 的方法。
安装
通过yarn或npm安装=>
yarn add -D webpack-watched-glob-entries-plugin
要么
npm install --save-dev webpack-watched-glob-entries-plugin
用法
// Get the plugin
const WebpackWatchedGlobEntries = require ( 'webpack-watched-glob-entries-plugin' ) ;
// In your Webpack config:
{
... // At your entry definition
1