Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

npm package #2

Open
pickfire opened this issue Dec 17, 2018 · 7 comments
Open

npm package #2

pickfire opened this issue Dec 17, 2018 · 7 comments

Comments

@pickfire
Copy link
Contributor

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

@aep
Copy link
Owner

aep commented Dec 17, 2018

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
Copy link
Contributor Author

Should I use wasm-pack for this?

@aep
Copy link
Owner

aep commented Dec 19, 2018

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

@pickfire
Copy link
Contributor Author

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
Copy link
Owner

aep commented Dec 22, 2018

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

@aep aep changed the title Webpack loader npm package Dec 22, 2018
@pickfire
Copy link
Contributor Author

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

  • Package it as wasm for nodejs?
  • Put it in this git repo or separate?

@aep
Copy link
Owner

aep commented Apr 1, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants