sindresorhus / multiline

Multiline strings in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not use js compress tool for multiline function

hjzheng opened this issue · comments

Can not use js compress tool for multiline function, for example

var str = multiline(function(){/*
<!doctype html>
<html>
    <body>
        <h1>❤ unicorns</h1>
    </body>
</html>
*/});

after compress (use YUI Compressor)

var str=multiline(function(){});

So do you have some method to handle this case.

Already documented in the readme. Please read it.