Closed tavurth closed 6 years ago
Please check out the usage section in the readme.
Changing the command to
import './styles.scss'
...
<div className='alert' />
Seems to have a different result, in that the class is not loaded. Any ideas?
You might be looking for css modules, modular css or styled components. This package simply combines the imported & compiled scss files into bundle.css
Hello @thgh
I am looking for this as well. According to https://css-tricks.com/getting-javascript-to-talk-to-css-and-sass/ you can make scss and js talk this way. I understand it was a choice not to make it work at first but could it be added?
Thank you for the great lib
Sample repository
Causes the error:
[!] Error: 'default' is not exported by src/styles.scss