Summary
Minifies the JS content.
- Assembly
- Wyam
.Minification .dll - Namespace
- Wyam
.Minification - Interfaces
- Base Types
-
- Object
- MinifierBase
graph BT
Type-->Base0["MinifierBase"]
click Base0 "/api/Wyam.Minification/MinifierBase"
Base0-->Base1["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["MinifyJs"]
class Type type-node
Syntax
public class MinifyJs : MinifierBase, IModule
Examples
Pipelines.Add("JS",
ReadFiles("*.js"),
MinifyJs(),
WriteFiles(".js")
);
Remarks
This module takes the JS content and uses minification to reduce the output.
Constructors
Name | Summary |
---|---|
MinifyJs |
Minifies the JS content. |
Methods
Name | Value | Summary |
---|---|---|
Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
IsInlineCode |
MinifyJs |
Flag for whether the content has inline JS code.
|
Minify |
IEnumerable |
Inherited from MinifierBase
|