Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import-map-storage-helper recommendation #601

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions versioned_docs/version-5.x/recommended-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ The advantage of b) is that it doesn't require running the import-map-deployer i

Another option of deploying and making sure the latests javascript files are beeing used is making use of redirect (HTTP status code 302). The single-spa import map uses the unhashed url of the javascript file. eg: dist/app.js. Then when the requests for this file comes to the server it is redirected to the actual deployed file eg. dist/app.123abc.js and this is then served to the client. This way the import map never has to be updated and the microfrontend can be separately deployed.

Continuous integration leads to the creation of a large number of packages. [import-map-storage-helper](https://github.com/dolmen-tech/import-map-storage-helper) can be a solution to clean up outdated and unused packages in the case of a CDN + [import-map-deployer](https://github.com/single-spa/import-map-deployer) usage.

## Applications versus parcels versus utility modules

Single-spa has [different categories](/docs/microfrontends-concept#types-of-microfrontends) of microfrontends. It is up to you where and how you use each of them. However, the single-spa core team recommends the following:
Expand Down