aep / pug-rs

pug.js reimplemented in rust for speed
27 stars 7 forks source link

npm package #2

Open pickfire opened 5 years ago

pickfire commented 5 years ago

Is it possible to have a webpack loader using pug-rs?

aep commented 5 years ago

yeah. create a file pug_loader.js and copy the code from the README.md.

let me know if there's anything unclear with that.

pickfire commented 5 years ago

Should I use wasm-pack for this?

aep commented 5 years ago

no not at all. just copy the code from the README into your project. https://github.com/aep/pug-rs#with-webpack

pickfire commented 5 years ago

No, I don't mean for my project. I saw projects that do not need to modify their webpack config but just install a plugin to use it such as https://github.com/pugjs/pug-loader. I was just wondering if there could be such option so that people can just add this as a dependency and just use it without modifying anything.

aep commented 5 years ago

that would require publishing to npm. I have no plans on doing that, but contributions welcome :)

pickfire commented 5 years ago

@aep If I were to help to create the NPM package. I have some parts not clear.

aep commented 4 years ago

btw zz creates npm packages automatically. i'll probably rewrite this in zz anyway when i get around to doing webstuff