Adds web pack support

Refactored sync command to work correctly with web packs.