make directive able to be minified