Installing Marksmin is pretty easy. Use one of the guides below depending on your ExpressionEngine version.
third_partyaddons system directory
That’s it. Marksmin for ExpressionEngine 2 is now ready to go.
system/user/addons/marksminto the same directory location in your EE instance
That’s it. Marksmin for ExpressionEngine 3 is now ready to go.
There are two required config items you need to put in your ExpressionEngine config file.
$config['marksmin_enabled'] = true;
You need to set this in your config file to enable Marksmin HTML minification on template render. You can set this item to
false to disable.
$config['marksmin_xhtml'] = false;
If you need to minify XHTML (for instance, if you are living in the past), set this to true. Otherwise set to false.