When I minify my js scripts, I'm having an error on of Unknown provider: eProvider <- e <- myDirective
angular
    .module('myApp', [])
    .run(['$state', run])
    .config(['$provide', config]);
function config($provide) {
    $provide.decorator('myDirective', function($delegate) {
        var directive = $delegate[0];
        directive.controller = 'MyController as vm';
        return $delegate;
    })
}
It seems like a minify issue wherein it renames variables. Though I'm not sure on how to convert this to be minify-friendly.
 
     
    