You need to sign in to do that
Don't have an account?
Brennon Williams 5
Resource interpreted as Stylesheet but transferred with MIME type application/zip?
Hi,
I'm trying to call the new Salesforce Design System CSS from within a .cmp file. No error is thrown, but Chrome logs "Resource interpreted as Stylesheet but transferred with MIME type application/zip"
I'm importing the CSS with:
where 'sds' is the name of the Salesforce Design System folder. It might be worth noting the files are .scss, not .css. Changing styles to "/resource/sds/index.scss" doesn't solve it either. What am I doing wrong here?
I'm trying to call the new Salesforce Design System CSS from within a .cmp file. No error is thrown, but Chrome logs "Resource interpreted as Stylesheet but transferred with MIME type application/zip"
I'm importing the CSS with:
<ltng:require styles="/resource/sds"/>
where 'sds' is the name of the Salesforce Design System folder. It might be worth noting the files are .scss, not .css. Changing styles to "/resource/sds/index.scss" doesn't solve it either. What am I doing wrong here?