astroturf
astroturf copied to clipboard
Empty style object
import { css } from 'css-literal-loader/styled'
let styles = css`
.bold {
font-weight: bold;
}
.list {
padding: 8px 0;
}
.item {
padding: 2px 0;
margin-left: 15px;
color: var(--dangerous);
list-style: disc;
}
`
console.log(Object.keys(styles))
Prints []
.
It could be environment or config problem. But I have no idea where I shouls look at.
OK, I found the issue. I missed with modules: true
in webpack config.
I will think how to improve error message to make onboarding easier.