CSS is always injected
See original GitHub issueHello,
i tried to disable injecting css with directive injectCSS: false
but css is always injected with map init.
Test:
in example/src/demos/heatmap.tsx
changed line 9 to:
const Map = ReactMapboxGl({ accessToken: token, injectCSS: false });
Screenshot with injectCSS: false
Always tested on production: React: 16.5.2 Mapbox: 0.50 React-Mapbox: 4.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Style Injection is for Winners | CSS-Tricks
The ability to inject newly-modified CSS on every file change (without reloading the page) is the type of workflow-enhancement that you never ...
Read more >What is CSS injection and how to prevent it? - Stack Overflow
CSS injection means that an attacker manages to upload malicious CSS code to your website which will run on your visitors browsers. Is...
Read more >CSS already injected - Google Groups
When injecting Blockly, you can choose to not inject CSS: ... It's always really nice to come back to an old question and...
Read more >The Fourth Way to Inject CSS - Dan Q
Every one of Jeremy's suggestions involve adding markup to the HTML document itself. Which makes sense; you almost always want to associate ...
Read more >дэн on Twitter: "Misconception: “inline styles” always means ...
Misconception: “inline styles” always means using DOM .style API. Reality: many “inline styles” libraries work by injecting CSS rule sheets.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this also doesnt play well with the new Next.js version where you HAVE to import css fils in _app. Only solution is to use the, now not recommended, @zeit/next-css plugin…
Pleeeese remove this require from code… It just doesn’t play well with bundlers.
I don’t want to use this built-in .css I have my own. And now it’s nearly impossible for me to make webpack ignore this css require from react-mapbox-gl so there is no duplicate css bundled