C# Class WebMarkupMin.NUglify.NUglifyJsMinifier

Minifier, which produces minifiction of JS-code by using the NUglify JS Minifier
Inheritance: NUglifyMinifierBase, IJsMinifier
Mostra file Open project: Taritsyn/WebMarkupMin Class Usage Examples

Public Methods

Method Description
Minify ( string content, bool isInlineCode ) : CodeMinificationResult

Produces a code minifiction of JS content by using the NUglify JS Minifier

Minify ( string content, bool isInlineCode, Encoding encoding ) : CodeMinificationResult

Produces a code minifiction of JS content by using the NUglify JS Minifier

NUglifyJsMinifier ( ) : System.Text

Constructs an instance of the NUglify JS Minifier

NUglifyJsMinifier ( NUglifyJsMinificationSettings settings ) : System.Text

Constructs instance of NUglify JS Minifier

Private Methods

Method Description
CreateOriginalJsMinifierSettings ( NUglifyJsMinificationSettings settings, bool isInlineCode ) : CodeSettings

Creates a original JS minifier settings

MapJsSettings ( CodeSettings originalSettings, NUglifyJsMinificationSettings settings ) : void

Maps a JS minifier settings

Method Details

Minify() public method

Produces a code minifiction of JS content by using the NUglify JS Minifier
public Minify ( string content, bool isInlineCode ) : CodeMinificationResult
content string JS content
isInlineCode bool Flag whether the content is inline code
return WebMarkupMin.Core.CodeMinificationResult

Minify() public method

Produces a code minifiction of JS content by using the NUglify JS Minifier
public Minify ( string content, bool isInlineCode, Encoding encoding ) : CodeMinificationResult
content string JS content
isInlineCode bool Flag whether the content is inline code
encoding System.Text.Encoding Text encoding
return WebMarkupMin.Core.CodeMinificationResult

NUglifyJsMinifier() public method

Constructs an instance of the NUglify JS Minifier
public NUglifyJsMinifier ( ) : System.Text
return System.Text

NUglifyJsMinifier() public method

Constructs instance of NUglify JS Minifier
public NUglifyJsMinifier ( NUglifyJsMinificationSettings settings ) : System.Text
settings NUglifyJsMinificationSettings NUglify JS Minifier settings
return System.Text