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

fix: using dist version of mapbox gl css #147

Merged
merged 3 commits into from
Mar 16, 2023

Conversation

rvdkooy
Copy link

@rvdkooy rvdkooy commented Mar 12, 2023

Hi,

I noticed react-azure-maps was importing the src version of Mapbox gl.
This can be inconvenient because now you have to setup a postcss configuration in your project if you want Mapbox gl to work properly

Tailwind with a postcss configuration even fails because of a limitation (nested selectors within a @media query fails, which is used in the src version of Mapbox gl)

this PR will make it much simpler by including the dist version of Mapbox gl

Copy link
Contributor

@yulinscottkang yulinscottkang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @rvdkooy! I will merge and create a new release for this.

And just for your reference, react-azure-maps@next removed the css imports so that apps will need to import the css manually. Please see MIGRATION.md for more details. Thanks.

@yulinscottkang yulinscottkang merged commit ac2df28 into Azure:master Mar 16, 2023
@rvdkooy
Copy link
Author

rvdkooy commented Mar 16, 2023

thanks a lot!
will check the @next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants