-
-
Notifications
You must be signed in to change notification settings - Fork 18
Support for --use #71
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
Conversation
Similar to how postcss-cli works
Drop deps for posthtml-load-plugins
Hey ! I would like to leave the current functionality and add your wonderful idea. I can realize for you this option in the near future or make your pull request which will retain the current functionality. Thank you for your interest in the project. 👍 |
@rowanoulton I added yours wonderful idea. Now you need to update the package and use --use. |
Yep, supports similarly postcss-cli --use and example. |
@gitscrum hey, apologies for the slow response. Awesome, thanks for rolling it in! There is one case that I've noticed isn't supported: config supplied in string format. Example: posthtml --use posthtml-css-modules --posthtml-css-modules "path/to/styles.css.json" --output dist/index.html --input src/index.html |
@rowanoulton Thank you for showing interest in my pack and bug report. I created a task on the solution of this problem. |
Hey,
I've put together a fork to support the
--use
argument, in the same way that postcss-cli does. It's purely selfish in that I'm used to the postcss-cli approach and wanted to emulate it here with your excellent module.I don't know if this is something you'd be interested in merging and I certainly understand if it's not a direction you'd like to take but I wanted to share it with you incase it's useful anyway. If you are keen, I could look to extend it to support both styles of config and avoid any breaking changes for existing users.
Let me know what you think, and cheers for the super useful project ✌️