Package net.jangaroo.jooc.api
Interface Compressor
-
public interface Compressor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompress(Collection<File> sources, File output)Compress the given JavaScript source files and write the result to the given output file.voidcompressFileList(File fileList, File output)Same ascompress(Collection, File), but the list of input file paths is read from a file, line by line.
-
-
-
Method Detail
-
compress
void compress(Collection<File> sources, File output) throws IOException
Compress the given JavaScript source files and write the result to the given output file. En passant, create a source map besides the output file with the same name and suffix '.map'. A matching source map declaration comment for browsers is appended to the output file.- Throws:
IOException
-
compressFileList
void compressFileList(File fileList, File output) throws IOException
Same ascompress(Collection, File), but the list of input file paths is read from a file, line by line.Paths within fileList are interpreted relative to the directory in which the fileList resides.
- Throws:
IOException
-
-