I am working on a task to import a CSS file, extract its contents, and then generate an array of class names.
Unfortunately, the code snippet below only returns an empty object in the log.
import Stylesheet from './styles.css'
console.log(Stylesheet)
I have explored various resources like NPM packages, Github, and Google in search of a suitable package for this purpose, but I haven't found one yet.