Skip to content

Instantly share code, notes, and snippets.

@adekbadek
Last active August 29, 2015 14:23
Show Gist options
  • Save adekbadek/8ba753d33b0afa2086da to your computer and use it in GitHub Desktop.
Save adekbadek/8ba753d33b0afa2086da to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
// (...)
copy:{
// (...)
options: {
process: function (content) {
content = content.replace(/<!-- DEVELOPMENT -->\s*.*\s*<!-- END DEVELOPMENT -->/g,'');
content = content.replace(/<!-- PRODUCTION\s*(.*)\s*END PRODUCTION -->/g, '$1');
return content;
},
},
// (...)
},
});
// (...)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment