MiniME - Build Integration
This page gives some tips on how to integrate MiniME into your build procedure.
The easiest way to integrate MiniME with a Visual Studio project is with a simple
Create a text response file that describes the command line options to be used. I usually
MiniME.txtand save it in the same folder as the script files.
Here's a typical example:
-nologo -check-filetimes *.js -o:scripts.min.js
In this example, MiniME will process all
.jsfiles in the same folder as
generate a single output script
scripts.min.js. Modify the above example to suit your
See Using the Command Line for available options.
In Solution Explorer, right click on your project and select Properties.
Switch to the Build Events tab
In the Pre-build event command line, enter something similar to:
the @ symbols tells MiniME to read it's command line options from the specified file.
Make sure mm.exe is on your build environment path (or include the full path to it
in the previous step)
Build your project and check the
scripts.min.jsfile has been generated.
There's no special instructions for integrating MiniME with make base build systems.
MiniME operates like any typical command line build tool and should be easy to setup for anyone
familiar with configuring make build scripts.
MiniME has an exit code of 0 on success. Any non-zero exit code indicates failure.