3 ms·
Does esbuild support scss directly yet? I see on the site it mentions css. This is an important limitation for me.
by towndrunk 5y ago
Does esbuild support scss directly yet? I see on the site it mentions css. This is an important limitation for me.
- pineconewarrior 5y agoSame! 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
- conradfr 5y agoI 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 https://github.com/glromeo/esbuild-sass-plugin [2] https://hexdocs.pm/phoenix/asset_management.html#esbuild-plugins 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 ;)