Skip to content

Commit

Permalink
Adding a comment replace step to grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
MeoMix committed May 7, 2015
1 parent b45d75d commit 82be650
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module.exports = function(grunt) {
to: 'localDebug: false'
}]
},
// Replace debugging and non-concatenated file references in manifest.json
// Remove development key and comments from manifest for deployment
transformManifest: {
src: ['dist/manifest.json'],
overwrite: true,
Expand All @@ -161,6 +161,10 @@ module.exports = function(grunt) {
// Don't remove key when testing because server will throw CORS errors.
return isDebug ? match : '';
}
}, {
// Remove comments because they can't be uploaded to the web store.
from: /\/\/ .*/ig,
to: ''
}]
}
},
Expand Down

0 comments on commit 82be650

Please sign in to comment.