Created
August 15, 2022 22:45
-
-
Save bennycode/7ba37ca4ae29837dcd4007738a465e05 to your computer and use it in GitHub Desktop.
Multiple Webpack Output Libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(`${pkg.name} v${pkg.version}`)], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment