Removes whitespace (indentation and newline characters) from multiline template strings. Works with both tabs and spaces.
$ npm install babel babel-plugin-minify-template-strings $ babel --plugins minify-template-strings script.js
v2.x.x of this plugin is required. Older versions are not compatible with Babel v6.
Leading/Trailing whitespace and newlines characters will be removed from all strings tagged with
html tag (you can also use
html as a function, if you need to use your own tag).
to;// Escaped characters are ignored.to;