Skip to content

[AssetMapper] Document how to use local npm packages#22008

Open
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/asset-mapper-node-modules
Open

[AssetMapper] Document how to use local npm packages#22008
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/asset-mapper-node-modules

Conversation

@lacatoire
Copy link
Contributor

Fixes #22000

Documents how to use AssetMapper with local npm packages from node_modules/ instead of the CDN, by:

  • Registering the package's browser-compatible directory in asset_mapper.paths
  • Using importmap:require --path to point to the local file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants