I am using grunt-contrib-uglify for my js build process and would very much like to be able to exclude certain parts of code from the final build.
So something that would look like:
/*BuildExcludeBegin*/
Run this code during development, but don't include it in the minified.js
/*BuildExcludeEnd*/
Does anyone know if this is doable with grunt-contrib-uglify?
grunt-contrib-uglify does not offer that. But you can use: https://www.npmjs.com/package/grunt-strip-code
Quote from that page: