Add minify setting

Use setting instead of constant