Change all CSS loads that use `require` to `import`
See original GitHub issueThis will be needed for style-loader v2.0.0.
Here is the full list, grouped by directory:
-
src/components/app/
: claimed by @codifyit- FooterLinks.js:
require('./FooterLinks.css');
- Home.js:
require('./Home.css');
- MenuButtons/Publish.js:
require('./Publish.css');
- ProfileViewer.js:require(‘./ProfileViewer.css’);
- FooterLinks.js:
-
src/components/flame-graph/
: claimed by @jufajardini- Canvas.js:
require('./Canvas.css');
- FlameGraph.js:
require('./FlameGraph.css');
- MaybeFlameGraph.js:
require('./MaybeFlameGraph.css');
- Canvas.js:
-
src/components/js-tracer/
: claimed by @mariehposa- Chart.js:
require('./index.css');
- index.js:
require('./index.css');
- Chart.js:
-
src/components/shared/
: claimed by @somaru-chan- Backtrace.js:
require('./Backtrace.css');
- CallNodeContextMenu.js:
require('./CallNodeContextMenu.css');
- chart/Canvas.js:
require('./Canvas.css');
- chart/Viewport.js:
require('./Viewport.css');
- Backtrace.js:
-
src/components/stack-chart/
: claimed by @burianovata- Canvas.js:
require('./Canvas.css');
- index.js:
require('./index.css');
- Canvas.js:
- Others: claimed by @AyumiOsawa
- src/components/marker-chart/index.js:
require('./index.css');
- src/components/network-chart/index.js:
require('./index.css');
- src/components/tooltip/Tooltip.js:
require('./Tooltip.css');
- src/components/marker-chart/index.js:
Each require
line needs to be changed to an import
line. For example:
require('./FooterLinks.css');
will be changed to
import './FooterLinks.css';
Please claim only one group at once. For example only src/components/app/
. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Using CSS Module Scripts to import stylesheets - web.dev
With the new CSS module scripts feature, you can load CSS style sheets with import statements, just like JavaScript modules.
Read more >import - CSS: Cascading Style Sheets - MDN Web Docs
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top...
Read more >Fast webpage loading using the all new "HTML import" draft in ...
My first quesion is: What are the ways to convert old style stylesheets into HTML import? Can I simply change... <link ...
Read more >Two ways to load only the CSS you need - LogRocket Blog
Use media queries and PostCSS to load CSS into a webpage based on the particular style sheet you want to use.
Read more >css-loader | webpack - JS.ORG
The css-loader interprets @import and url() like import/require() and will resolve them. Getting Started. Warning. To use css-loader, webpack@5 is required. To ...
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
@jufajardini @mariehposa @AyumiOsawa I’ve added you on the groups you asked. Thanks for helping!
Also I’m adding the “assigned” label because all groups are now claimed.
Hey, yes!
Sorry for making you come asking.Finished it yesterday evening, but since it’s my first PR ever, I wanted to make sure I wasn’t making any mistakes. I’ll pull it within one hour, if I don’t get entangled in the process.
Thanks for the patience, and sorry once more.
Ju
Le ven. 16 oct. 2020 à 19:00, Julien Wajsberg notifications@github.com a écrit :
– Juliana Fajardini Reichow