I have a webpack.config.js file defined as module.exports = function (env, args)
with different entry points. Now I want to add an entry point and expose it as a library. Calling webpacked code from outside (HTML script tag) says we can do
module.exports = {
entry: './index.js',
output: {
path: './lib',
filename: 'yourlib.js',
libraryTarget: 'var',
library: 'EntryPoint'
}
};
But how do I restrict this to a specific entry point.