webpack-glob-entries-plugin
Provides a way to glob for entry files in Webpack watch and non-watch modes.
API
new WebpackGlobEntriesPluginglobs: string|string, options?: ;
- globs: The glob string or array of glob strings.
- options: The configure options.
- options.glob: The node-glob configure options.
- options.resolveEntryName: The entry name resolve function.
Usage
const WebpackGlobEntriesPlugin = ; const watcher = 'src/js/pages/**/*.js'; moduleexports = mode: 'development' entry: watcher output: publicPath: '/dist/' path: path filename: 'js/pages/[name].js' chunkFilename: 'js/chunks/[chunkhash].js' plugins: watcher;