Hacker News new | ask | show | jobs
by conradfr 1708 days ago
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 ;)