JSCompress Class

MSBuild

Compresses JavaScript source by removing comments and unnecessary whitespace. It typically reduces the size of the script by half, resulting in faster downloads and code that is harder to read.


Namespace: MSBuild.Community.Tasks.JavaScript
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class JSCompress
    Inherits Task
C#
public class JSCompress : Task
C++
ref class JSCompress : Task
J#
public class JSCompress extends Task
JScript
public class JSCompress extends Task

Remarks

This task does not change the behavior of the program that it is compressing. The resulting code will be harder to debug as well as harder to read.

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.JavaScript.JSCompress

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.