Using npm, bower and composer to install packages without devDependencies instead of merely copying the composer vendor files over. This will allow greater flexibility and the option to run npm servers like socket.io.  Place webpack dependencies in npm and bower devDependencies and anything that needs to be available after the build process into dependencies.  Likewise for put dev-only composer packages in devDependency.