Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Question/Bug: Init Order #1210
So, the initServer is the very last thing that runs in the stack. Inside of InitServer is when the Middleware stack is built out. This is after the plugin's get a chance to run their "onStartupWithContext" functions. In your example code, you suggest swapping out middleware in these blocks. However, I do not have access to the middleware set at this point.
Was this the intent? Based on your blog post (https://gist.github.com/brianhyder/f011cdea8a6cce1128ba6ff86e9a10a1#file-minify-js) with examples of using the new feature I would say that it is not. Thus I am wondering if I am missing something.
Steps to Reproduce:
PencilBlue Version: 0.8.0
Node.js Version: 4.2.2
Environment Description: OSX