0

I am creating a SWC plugin for Next js. I have no problem finding the "background" attribute.

<div background="red"></div>

Using SWC, I add a unique class to this element instead of an attribute.

<div class="uniqueStyle642"></div>

I need to create css using SWC.

.uniqueStyle642{
        background:red;
}

Any ideas how this can be done?

An empty css file may already be created and imported into the application.

I need to somehow add style.

Jared Smith
  • 19,721
  • 5
  • 45
  • 83
Roman
  • 175
  • 2
  • 3
  • 15

0 Answers0