wildcards-entry-webpack-plugin
wildcards-entry-webpack-plugin copied to clipboard
Allow multiple entry points
I would love something like this
entry: WildcardsEntryWebpackPlugin.entry({ entry1: './src/a.js', entry2: './src/**/*.js', entry3: '...' }),
I suppose you may use second parameter to extend list of entries if you need non-wildcard values:
{
…
entry: WildcardsEntryWebpackPlugin.entry('./src/**/*.js', {staticEntry: './src/a.js'}),
…
}
or something like this for several wildcards:
{
…
entry: () => {
return Object.assign({},
WildcardsEntryWebpackPlugin.entry('./sources/**/index.jsx')(),
WildcardsEntryWebpackPlugin.entry('./sources/libs/**/index.js', {}, 'libs')(),
WildcardsEntryWebpackPlugin.entry('./sources/utils/**/*.js', {}, 'utils')(),
);
},
…
}
But I would also prefer this as an option of plugin ;)