Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: plugins? #115

Open
yoshuawuyts opened this issue Jan 14, 2017 · 3 comments
Open

idea: plugins? #115

yoshuawuyts opened this issue Jan 14, 2017 · 3 comments

Comments

@yoshuawuyts
Copy link
Contributor

I want to write a package to dedupe CSS; all of it. Problem is: we can't access the whole bundle because we stream it out. Should we perhaps introduce a plugin system of the sorts and have a labeled pipeline thing like browserify does? Perhaps only allow access to the final output stream?

cc/ @ahdinosaur @hughsk thoughts on how we can apply transformations to all of the CSS? Thanks!

@yoshuawuyts
Copy link
Contributor Author

This was brought up by dat-ecosystem-archive/datBase#381, which shows we need to dedupe - best would be to operate on all of the CSS ghmm

@ahdinosaur
Copy link
Member

the simplest option feels like a "global plugin": a function to create a transform stream that is piped the final output stream, but happy with whatever you think is the best way to support your use case. 🌸

@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented Jan 14, 2017 via email

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

No branches or pull requests

2 participants