aMarCruz / gen-pug-source-map

Source map generation for Pug v2.x (aka Jade)
MIT License
3 stars 0 forks source link

How to use with webpack - Help needed #3

Open rsevil opened 5 years ago

rsevil commented 5 years ago

Hi @aMarCruz, hope you're doing well

I'm trying to integrate your lib with webpack, but as I'm new to all of this I currently have no idea on how to do it. Have you done this before? Can you give me some leads on how to do it?

Regards, Rodrigo

aMarCruz commented 5 years ago

Hi @rsevil . I've never used Webpack so no idea, sorry I'll leave this issue open in case anyone knows.

rsevil commented 5 years ago

Hi @aMarCruz,

Thanks for your quick reply, I've almost hardwired the lib to the pug-html-loader, and generated a sourceMap like output. But also I made a quick research about the usage of html sourcemaps but I found nothing about browsers supporting them. Can you tell me how are you using them? maybe it's no use that I keep investing time in this.

Thanks, Rodrigo.

aMarCruz commented 5 years ago

Sure, examples are in pugjs-brunch and rollup-plugin-pug