Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Multiple Webpack Output Libraries
module.exports = {
devtool: 'source-map',
entry: {
[projectName]: `${__dirname}/${pkg.main}`,
externals: {
dexie: 'Dexie',
mode: 'production',
output: {
filename: '[name].bundle.js',
library: 'StoreEngine',
path: `${__dirname}/dist`,
publicPath: '/',
plugins: [new webpack.BannerPlugin(`${} v${pkg.version}`)],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment