add stub.js plugin to build process