-
Notifications
You must be signed in to change notification settings - Fork 844
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
[new_plugin] minification #1362
Comments
Hi Alexander. Thank you for reaching out. For my own education, would you please let me know how the plugin differs from the WebAssets plugin? |
Webassets doesn't minify HTML. And there is no good alternative (package |
As pointed out by @kernc, our plugin additionally minifies HTML. It does not do any of the webassets based capabilities as listed in the webassets plugin page (cache busting, spritemaps, data URIs). |
Your implementation, however, depends on packages htmlmin and csscompressor, which haven't been touched in years. |
@dArignac why do you only minify inline js and not js files in the build folder? |
Howdy! It's been a while, thanks for your comments! I was now able to review your comments and to update the code. @S1SYPHOS @nkr0 everything is now minified: JS, CSS, HTML files and inline CSS & JS |
In the meantime I developed something on my own using a minifier written in Golang (using its Python bindings), but I guess I didn't release it to the public yet 😅 If I find the time, I'll gladly check out your changes, thanks for letting me know! |
Ok, not seeing this going anywhere, therefore closing my request. |
Hey Alexander. Please accept my sincere apologies for the delay in getting back to you about your request. It has been a particularly busy period. I would be happy to set up a separate repository for this plugin under the new Pelican Plugins organization so that we can collaborate on its development. I will update this issue by the end of next week with further details and next steps. How does that sound? |
Hi Justin, alright, thanks for picking it up again. |
Certainly! To that end, would you be so kind as to add the following two usernames with
That way, once the repository has been set up, future releases can be published to PyPI via the same automated process as the other plugins under the Pelican Plugins organization. |
Sure, invites were sent. |
Excellent. Thank you, Alexander! 😊 |
I have created the new repository under the Pelican Plugins organization. When doing so, it occurred to me that the “pelican-minification” name is a bit cumbersome and has problems with auto-correct, and that “minify” would be a cleaner, better name for the plugin. The Following is a proposed list of steps that will eventually lead to publishing version 2.0.0 to PyPI from the plugin’s new repository:
How does that sound? Any steps I should add to this list? |
Hi Justin, that sounds good, cannot think of any additional action item. Will review the PR then. |
My pleasure. I just re-worked the commits in that PR's |
I'd work on the next open points, also need to make myself familiar with autopub. |
For the next step in the process, it's probably easier for me to handle the release. All of the release publication machinery is already in place; it's just a question of deciding what to put in the release notes / change-log. I will endeavor to finish that step later today. But once that is done, your help with the last two steps would be helpful and much appreciated! |
I think the
|
Version 2.0.0 of the Minify plugin has been released 🎊 (There was a minor hiccup with the release automation due to some missing project metadata, but that should now be fixed.) @dArignac: If you would be so kind as to publish a notice & link to the new repo/PyPI pages on the pelican-minification repository README, that would be wonderful. |
@justinmayer Notice was added. |
Great! I don't know if there is an easy way to do the same for the README on the PyPI page. The only way I can think of would be to publish version 1.0.1 to that project so the notice you added to the repo's README is updated on the PyPI page. 🤔 |
I will take care of this within the next days. |
A note was added to the new patch version of the old plugin: https://pypi.org/project/pelican-minification/ |
Hi there,
I have a plugin that does minification of the HTML, CSS files as well as inline styles and javascript and would like to move it to here.
I prepared the structure and setup according to your cookiecutter in my branch here: https://github.com/dArignac/pelican-minification/tree/5-add-to-pelican-plugins
Best,
Alex
The text was updated successfully, but these errors were encountered: