Exciting brand new features – utilizing supply maps with Sass 3.3
One of several exciting brand brand new features in Sass 3.3 that each and every designer should simply just simply take benefit of is source maps.
This means that when you inspect an element with developer tools, rather than seeing the CSS styles associated with that element, you can see the code we really care about: the pre-compiled Sass in practice, for Sass users.
Generating source maps for Sass
To obtain use of this particular aspect into the web browser, you’ll want to produce a source map file for each supply file.
For Sass, this might be as simple as incorporating a banner to Sass’s demand line device:
In the event that you try looking in your production folder after operating that demand, you will realize that a remark is included with the conclusion of this CSS that is generated file
Enabling supply maps when you look at the browser
The thing that is second should do to make the most of supply maps is always to be sure that our web web web browser understands try to find them. „Exciting brand new features – utilizing supply maps with Sass 3.3“ weiterlesen