1.0.0 • Published 4 years ago

webpack-glob-entries-plugin v1.0.0

Weekly downloads
362
License
MIT
Repository
github
Last release
4 years ago

webpack-glob-entries-plugin

Provides a way to glob for entry files in Webpack watch and non-watch modes.

NPM Version Download Status Node Version Dependencies

API

new WebpackGlobEntriesPlugin(globs: string|string[], options?: { glob: Object, resolveEntryName: Function });
  • 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 = require('webpack-glob-entries-plugin');

const watcher = new WebpackGlobEntriesPlugin('src/js/pages/**/*.js');

module.exports = {
  mode: 'development',
  entry: watcher.entries(),
  output: {
    publicPath: '/dist/',
    path: path.resolve('dist'),
    filename: 'js/pages/[name].js',
    chunkFilename: 'js/chunks/[chunkhash].js'
  },
  plugins: [watcher]
};

Thanks

Milanzor/webpack-watched-glob-entries-plugin

1.0.0

4 years ago

0.3.2

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago