Add webpack config alias for leaflet.min.css#1525
Add webpack config alias for leaflet.min.css#1525jonathan-stimactiv wants to merge 3 commits intosymfony:mainfrom
leaflet.min.css#1525Conversation
jonathan-stimactiv
commented
Mar 25, 2026
| Q | A |
|---|---|
| License | MIT |
| Doc issue/PR | #1524 |
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. |
Kocal
left a comment
There was a problem hiding this comment.
I like it! However I'm not sure if you should create a new recipe version or not cc @nicolas-grekas
Head branch was pushed to by a user without write access
nicolas-grekas
left a comment
There was a problem hiding this comment.
I suppose v2.19 supports this
|
Yes, the workaround for Encore has been documented since day-one https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md#unable-to-find-leafletdistleafletmincss-file-when-using-webpack-encore |
| "add-lines": [ | ||
| { | ||
| "file": "webpack.config.js", | ||
| "content": "\n .addAliases({'leaflet/dist/leaflet.min.css': 'leaflet/dist/leaflet.css'})", |
There was a problem hiding this comment.
can you just please convert this into an array, as done in 266f98b?
Head branch was pushed to by a user without write access