Hello Developers,
I attempted to follow the documentation here => https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_components_css_share
For step 1 it seems impossible to create a component with JUST a css file. I figured it then needed a meta file but that didn't work either. I finally got it to deploy when I added a basic js file and exported a class.
After I got that working I tried to use the @import which failed with the message
Unknown ref type slds for ref <mynewcssfile>.css in file <componentIamImportingInto>.css
Wondering if anybody had been able to get the above working by following the documentation before. I have many components that will share the same CSS and don't want to be duplicating it everywhere.
Thanks for looking @Kam Patel and thank you for the suggestion @Nikhil Karkra, that is what I had done, just adds a bit more overhead, but it works