Interface Compressor


  • public interface Compressor
    • 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 as compress(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