Hacker News new | ask | show | jobs
by towndrunk 1708 days ago
Does esbuild support scss directly yet? I see on the site it mentions css. This is an important limitation for me.
2 comments

I use the esbuild-sass-plugin[1] in my Phoenix 1.6 project, using the build script they give in the doc[2] and it works for me.

[1] https://github.com/glromeo/esbuild-sass-plugin

[2] https://hexdocs.pm/phoenix/asset_management.html#esbuild-plu...

Maybe it'll help someone, one difference from the plugin doc was using:

const { sassPlugin } = require("esbuild-sass-plugin");

Instead of:

import { sassPlugin } from "esbuild-sass-plugin";

After all, it would not be Javascript without some import syntax shenanigan ;)

Same! I am struggling with SCSS tooling. SCSS/SASS itself even seems like it is in dire need of maintenance and direction.

Personally I'd rather not use it at this point, but it's not viable yet