- An additional folder and contents for release that I had no interest in seeing in my development workspace.
- A non-standard way of declaring your initial requirejs starting point.
What I wanted was for the optimization to occur during the deploy process – web publish in my case. I soon discovered that you can extend the web publish process in either the .pubxml publish profile files or by adding a [projectname].wpp.targets file. These files are msbuild files and thanks to a couple of posts by Sayed Ibrahim Hashimi and by poking around the msbuild files used for publishing, I figured out that during the publish I could: