Hi all. Has anyone used `pug` with `SST` ? I am f...
# sst
i
Hi all. Has anyone used
pug
with
SST
? I am facing the following error:
No loader is configured for ".pug" files:
t
hey you need to add an entry to the esbuild option
one second
i
@thdxr So it looks like I need to install a npm package called
pug-loader
and specify this in my function construct like:
Copy code
{
 '.pug': 'pug-loader'
}
?
t
depends how you need to load it, if you specify
.pug: "text"
importing it will give you a string
and you can process it yourself
i
@thdxr Thanks! I will check it out