metalsmith-ruby-sass

Ruby Sass plugin for Metalsmith. There are issues with the way libsass (which is used by node-sass) handles @extends, which makes it necessary for some to use Ruby sass

Usage no npm install needed!

<script type="module">
  import metalsmithRubySass from 'https://cdn.skypack.dev/metalsmith-ruby-sass';
</script>

README

metalsmith-ruby-sass

Ruby Sass middleware for Metalsmith.

This middleware was created to overcome some limitations in libsass (which node-sass is built on, which metalsmith-sass uses). While libsass is an excellent tool for the node community, this issue unfortunately can be a dealbreaker for some until it is resolved.

Credits

This project claims no credit for originality. Most of the code comes from @steveschobert's excellent metalsmith-sass project. Also, some of the code calling out to Ruby Sass came from the grunt-contrib-sass project, which also uses Ruby Sass. Big thanks to both projects!