Grav: [add-resource] New Plugin: Minify HTML

Created on 26 Jun 2017  路  13Comments  路  Source: getgrav/grav

I would like to add my new plugin to the Grav Repository. Here are the project details: https://github.com/jimblue/grav-plugin-minify-html

plugin

All 13 comments

Added to GPM

@rhukster thank you !

Hi @rhukster!

I've just try to install the plugin from admin and apparently there is a little problem.

The root folder of the plugin is not properly named.

Actually it's /user/plugins/minify-html but should be /user/plugins/minifyhtml

Because of this the plugin is not showing/working.

The folder is taken from the repo name, it's grav-plugin-minify-html, so Grav gets minify-html.

Change your main php file and yaml to minify-html.php and minify-html.yaml and create a new release. The class name is ok.

Actually i can fix via GPM, by setting the 'slug' name. It's always better to use the same name in your repo as in your local Grav plugin though or it gets confusing :)

fixed for next GPM update

Don't worry @rhukster, I will stick to the default behaviour and make the @flaviocopes modification. This is easy to do 馃槃

Done!

@rhukster I'm now respecting GPM default behaviour on the new release.
As you already made the change for GPM it's broken again.
Can your reverse back to minify-html for the next release please.

Thank you man and sorry for the misunderstanding.

switched it back for next update.

@rhukster you will hate me lol !

I had to change my github username... sorry... here is the new link... it's the last time promess

https://github.com/jimblue/grav-plugin-minify-html

done

Apparently the minify-html plugin has been deleted. Is there any alternative?

Was this page helpful?
0 / 5 - 0 ratings