electron-compilers
electron-compilers copied to clipboard
Update HTML compiler to use Pug
The update will allow the compiler to use Pug to compile and render .jade and .pug files.
I'm not sure if I've done it correctly, as I couldn't find a way to test the changes. I think that a PR will be required to reflect these changes on electron-compile.
Why are we using an alpha version?
It's the latest version available on npm. When I tried installing the 1.11.0 version npm said it couldn't locate it.
Tag history: https://github.com/pugjs/pug/tags
Hm, it might be better to hold off on this until a final version is released
There are also some breaking changes between Jade v1 and Pug v2. It would be better to handle them separated until Jade support can be removed.
It's been over a year now, so I suspect that there should be a straight-forward migration path to dropping jade in favor of pug. What needs to be done? Can I help? Should either this PR or #66 be closed in favor of the other or are they truly distinct?