WebPackerTool.exe

Tool for generate packages in console.

Usage


  WebPackerTool <source> [-config=] [-basePath=] [-output=] [-name=] [-meta=]

Options:
  source
      Set of resource files (separated by a space) or file with a configuration of packages or web.config with <web.packer> configuration.
  -config=
      Path for custom packing configuration file.
  -basePath=
      Current directory for resources files. Used for resolve \"~\" also.
  -output=
      Output path for generated packages.
  -name=
      Name of package for set of files.
  -meta=
      File for writing meta information of packages.

File with meta information of packages used by StaticPackProvider.

Example of packing configuration file:

<web.packer versionGenerator="md5">
  <filters>
    <filter type="WebPacker.Filters.YuiCssMinifier" />
    <filter type="WebPacker.Filters.YuiJavascriptMinifier" isObfuscateJavascript="true" />
  </filters>
  <versionGenerators>
    <versionGenerator name="md5" type="WebPacker.VersionGenerators.Md5VersionGenerator" />
  </versionGenerators>
</web.packer>

Examples


Packing a set of files.

  WebPackerTool 1.js 2.js -output="resources" -name="mypack"
Packing by description.

  WebPackerTool Packs.config -output="~/resources" -basePath="c:\webapp\app"
Packing by configuration described in the web.config. In this case, the basePath is "c:\webapp\app\" by default.

  WebPackerTool c:\webapp\app\web.config

Last edited Sep 21, 2011 at 5:32 PM by pshkarin, version 1

Comments

No comments yet.