Dont emit unused bundles - fixes #721

- preventing unused JS and CSS bundles from being output when building static files or a war

fixes #721