Add stylus module and configure middleware