Replace words in JS
This is plugin for nmp-package "Post-Compression".
He`s searching and replaces long words on short words, in the JS code.
An example of using:
var replaceWordsInJS = ; gulp ;
Where:
- shortNames - an object of type JSON with rules replace the long words to short words.
An example of the JSON object "shortNames":
"words_in_js": // the name of the group names "core": "a" // long name: short name "_createScope": "b"
An example of JS code before:
...ecore||{}}};e;for...
An example of JS code after:
...ea||{}}};e;for...