Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Css Modules #238

Open
nitroplonker opened this issue Jul 21, 2021 · 1 comment
Open

Css Modules #238

nitroplonker opened this issue Jul 21, 2021 · 1 comment

Comments

@nitroplonker
Copy link

Hi,

My aim is to use my existing React library of components (built on CRA using css modules) inside Angular apps. The problem i am running into is that when trying to build the component it doesn't appear to generate the modularized css file that it is referencing inside the component

ENOENT: no such file or directory, open 'C:\Source\library\dave-component\build\static\css\main.b5c61002.css'

Any ideas on how to get this working?

Any help would be much appreciated

Thanks

@bhavikup
Copy link

bhavikup commented Aug 1, 2021

Hi @nitroplonker,

If you are importing the CSS into your React Component like https://direflow.io/styling . After build, your styles are added to the main JS file and at runtime of the main JS file your CSS as a string will be added to the DOM via style tags within your web-components when they are rendered.

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

No branches or pull requests

2 participants