Last active
September 2, 2024 03:38
-
-
Save leocristofani/7a0584661e4c6b28cf14c4b30a54b18e to your computer and use it in GitHub Desktop.
Micro-frontend in practice - Expose library as UMD from Webpack
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 = { | |
mode: 'production', | |
entry: `../client/src/embed.js`, | |
output: { | |
library: 'Artists', | |
libraryTarget: 'umd', | |
filename: 'index.[hash].js', | |
path: path.resolve(__dirname, '../server/public/embed') | |
}, | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment