Skip to content

Compressor: build task

Cezar Cretu edited this page Aug 29, 2014 · 3 revisions

The compressor (both of them) is provided by an MsBuild task called RequireCompressorTask.

The task can receive the following paramters:

  • LoggingType - to be passed to the YUI compressor, can be none, info or debug

  • CompressionType - to be passed to the YUI compressor, can be none or standard

  • EncodingType - to be passed to the YUI compressor, text encoding for the minifier, can have one of the following values: ascii, bigendianunicode, unicode, utf32, utf-32, utf7, utf-7, utf8, utf-8, default

  • AutoCompressor - whether to run the autoCompressor or the classic one

  • PackagePath - the output directory for packages, it will default to the value of ProjectPath if not specified.

  • ProjectPath - the directory from which configs/scripts are read

  • RequireConfigs - the list of require configuration files. Defaults to ~/RequireJS.json

  • EntryPointOverride - allows you to override the entrypoint used to load scripts, default is ProjectPath + \Scripts\