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.
The following tables list the members exposed by JSCompress.
Public Constructors
| Name | Description | |
|---|---|---|
|
JSCompress | Initializes a new instance of the |
Public Properties
| Name | Description | |
|---|---|---|
|
BuildEngine | Gets or sets the instance of the |
|
CompressedFiles | Gets the files that were successfully source-compressed. |
|
Encoding | Encoding to use to read and write files. |
|
Files | Gets or sets the files to source-compress. |
|
HostObject | Gets or sets the host object associated with the task. (inherited from Task) |
|
Log | Gets an instance of a |
Protected Properties
| Name | Description | |
|---|---|---|
|
HelpKeywordPrefix | Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task) |
|
TaskResources | Gets or sets the culture-specific resources associated with the task. (inherited from Task) |
Public Methods
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified |
|
Execute | Overidden. When overridden in a derived class, executes the task. |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
ToString | Returns a |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |
See Also
Documentation version 1.0.0.0.