Skip to content

Function: minify() ​

  • Exported from: rolldown/utils
  • Type: (filename: string, sourceText: string, options?: MinifyOptions | null) => Promise<MinifyResult>
  • Experimental

Minify asynchronously.

Note: This function can be slower than minifySync due to the overhead of spawning a thread.

Parameters ​

filename ​

string

sourceText ​

string

options? ​

MinifyOptions | null

Returns ​

Promise<MinifyResult>

Was this page helpful?