Open tasn opened 10 years ago
Hi, Hyde 1.0 will have patchable configuration. That said, this particular use case has been addressed within the plugins themselves. See the uglify plugin for example: https://github.com/hyde/hyde/blob/master/hyde/ext/plugins/js.py#L53-L55
Patched configuration would be better, but sure, one could just adjust the plugins to not do it on development mode. I wanted to avoid this for HtmlMin, I could add it if wanted.
Yeah, one of the design goals for hyde (this edition as opposed to 0.5 edition at lakshmivyas/hyde) has been to simplify the plugins to be a simple list.
Handling development vs production, their own configuration etc have been a part / side effect of this decision. So far, I have not found any issues with that.
I've created the new HtmlMin plugin. For convenience, this should only be used in production, however, I can't add the plugin, because I can't append to the list when inheriting.
I could just turn the plugin off using it's own config in the development site.yaml, and then enable it in the production, but that's ugly. :)