This is plugin for nmp-package "Post-Compression".
Search the quotied strings the in JS code.
var searchStringInJS = require("pc__search_string_in_js"),
uniqueNames = {};
gulp.src("./*.js")
.pipe(postCompression.search([
searchStringInJS()
], uniqueNames));
Where:
- uniqueNames - an object of type JSON with rules replace the long words to short words.
t.triggerEvent("update",null);
g.addEvent("update_hash", function() {});
{
"update": 1,
"update_hash": 1
}