-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Inline maplibre css from node_modules #7140
Inline maplibre css from node_modules #7140
Conversation
@birkskyum Thanks very much for the PR. |
Can you test if a build works, and not just the dev server? |
I see some changes to the bundle sizes in https://app.circleci.com/pipelines/github/plotly/plotly.js/11270/workflows/422af31b-c7fb-49f7-b06b-5e5c51081ea2/jobs/249307/parallel-runs/0/steps/0-108 But please double check. Perhaps you may try using the basic partial build from the CircleCI artifatcs in a codepen like this? |
@birkskyum please add a draft log. |
i believe it's working now - i see the ~66kb ( size of the .css ) added to the bundle. |
Nicely revised. |
This pulls the css from node_modules instead of unpkg. Mapbox traces inline the css, and doing so for maplibre as well will allow the map_ traces to run fully offline, ofc. at the cost of some bundle size.
Fixes #7139
This works for the dev server
npm run start
, but it might not yet get the .css inline in the build.