question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to include CSS into the exported package

See original GitHub issue

Hi guys,

I can’t figure out how I can ‘publish’ my package with its corresponding CSS file. For instance I created a CustomTable component which imports the ReactTable package. I also import its CSS. But when I build and export the CustomTable package, the CSS file is missing. Do you have any clues? Thanks for your time

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tdiluziocommented, Feb 16, 2018

This does it thanks for your time @DimitriMikadze

0reactions
tdiluziocommented, Feb 8, 2019

Hi @ronaiza-cardoso are all the files you built present in the build folder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to export and import style in npm package? - Stack Overflow
1 Answer 1 · 3. For webpack, do npm install --save-dev css-loader . Then in your webpack.config.js, add this line to the use...
Read more >
Declare .css in package.json exports #2657 - GitHub
The project runs with react-scripts and I try to make it use vite. When I run vite , I have an error :...
Read more >
CSS : how to export and import style in npm package?
CSS : how to export and import style in npm package ? [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] CSS : how to ......
Read more >
Using CSS Module Scripts to import stylesheets - web.dev
Learn how to use CSS module scripts to import CSS stylesheets using the same syntax as JavaScript modules.
Read more >
CSS @import Rule - W3Schools
The @import rule allows you to import a style sheet into another style sheet. The @import rule must be at the top of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found