I’m building a customizable web interface where users update SCSS variables. I need a C# Action to convert SCSS to CSS swiftly. How can this conversion be achieved?
hey, ive been tinkering with a sassworker exe from c# to compile on the fly. its quirky but seems to work. anyone tried it in a busy env, and how did it handle performance?
hey, try using sassandcofee lib in c#, its a bit quirky but works decently. i used it in a small projct and caching was key to manage loads. might need some tweaking for high traffic but it did the trick for me.
hey, u might try using a liblike libsass.net for conversion. i’ve read about dart-sass wrappers for c#, but anyone have real experience with it? curious how it scales in a live theme context.
hi there, i used an approach calling node-sass through process.start within c#. its not perfect but works fast, and caching make things even better. good for live themes so far, might be worth tinkering with if you run into performance issues.
In my recent project, I integrated the DartSassHost library to handle SCSS compilation within a C# environment. This approach provided a native C# API to convert SCSS to CSS reliably, while leveraging the Dart Sass engine for compatibility with modern SASS syntax. The library proved efficient under real-time load for interactive customization. Moreover, integrating caching mechanisms enhanced performance by avoiding redundant compilations. Based on my experience, this method offers a solid balance between ease of integration and the robustness needed for dynamic theme customization.