Connor Leech Connor Leech - 5 days ago 5
Sass (Sass) Question

MIME type as text/plain for Sass stylesheet in chrome

I've got a normal website of files on my local machine and would like to use Sass. In the

<head>
of my index page I have:

<link rel="stylesheet" type="text/css" href="stylesheets/style.scss" />


Though when I run this in Chrome I get an error in the console:

Resource interpreted as Stylesheet but transferred with MIME type text/plain
coming from the link tag in index.

How can I change the meme type so Chrome renders my Sass styles?

Answer

Don't think you can insert SASS right into your web page. There must be some SASS preprocessor first. That gives you a normal CSS file.

Comments