Inject dependencies properly for uglify.
Build configuration fixed.