Eleventy: Use SASS (node-sass) as a template engine for CSS/SCSS files

Created on 11 Feb 2019  路  5Comments  路  Source: 11ty/eleventy

It would be good to be able to optionally use node-sass as the template renderer for .css/scss files...

It seems to similar fit the same architectural pattern as any other template engine, albeit for a different type of file...

What would be the difficulty in supporting this as an option?

Thanks :)

enhancement needs-votes

Most helpful comment

This is exactly the thing proposed by #117. After this API becomes available, we can defer this to plugins (some first party, some third party).

All 5 comments

@zachleat what's the opportunity on opening a plugin API for engines?

If the engine API could be partially standardized, I think this could easily be done through plugins, allowing us to add less, sass, and more support.

I see this API binding a node module to a set of file extensions. This module would basically tell eleventy how to:

  • load the file
  • pass data to the file
  • render the file

This is exactly the thing proposed by #117. After this API becomes available, we can defer this to plugins (some first party, some third party).

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don鈥檛 forget to upvote the top comment with 馃憤!

馃憤
Any site, large or small, needs sass sourcemaps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

veleek picture veleek  路  3Comments

aaronstezycki picture aaronstezycki  路  3Comments

proog picture proog  路  3Comments

michrome picture michrome  路  3Comments

jamrelian picture jamrelian  路  3Comments