How to start moving legacy codebase to webpack