Add proper dependancy injection for minification