diff options
author | Paul Miller <paul@paulmillr.com> | 2013-01-13 18:45:43 +0200 |
---|---|---|
committer | Paul Miller <paul@paulmillr.com> | 2013-01-13 18:45:43 +0200 |
commit | ad071f8017f36c47809cb53c411f8fee14874677 (patch) | |
tree | f8676a33bb9ba1aa0ede8b0cc593dee5a39699b9 | |
parent | c058d8b9cdb30b4fc14490d5274f53a84b97f78d (diff) | |
download | tracifyjs-ad071f8017f36c47809cb53c411f8fee14874677.tar.gz tracifyjs-ad071f8017f36c47809cb53c411f8fee14874677.zip |
Add better fromstring docs.
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -324,9 +324,10 @@ There's a single toplevel function which combines all the steps. If you don't need additional customization, you might want to go with `minify`. Example: - // see "fromString" below if you need to pass code instead of file name var result = UglifyJS.minify("/path/to/file.js"); console.log(result.code); // minified output + // if you need to pass code instead of file name + var result = UglifyJS.minify("var b = function () {};", {fromString: true}); You can also compress multiple files: |