Created
December 19, 2018 12:34
-
-
Save leocristofani/65358119718c7bb45ecccafb1b42de0f to your computer and use it in GitHub Desktop.
Micro-frnotends in practice - expose path to embed files
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
/* | |
* Generates { js: 'path/to/index.[hash].js', css: 'path/to/index.[hash].css' } | |
* based on files available in /public/embed directory | |
*/ | |
function getPathToEmbedAssets() {} | |
/** | |
* Exposes paths to embed assets | |
*/ | |
app.get('/api/embed-assets', (req, res) => { | |
res.json(getPathToEmbedAssets()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment