Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
assets
vendor
views
.gitignore
.mincerrc
README.md
environment.js
manifest.js
server.js

README.md

Mincer Examples

Examples of Mincer usage.

  • server.js: Example of using Mincer's server for serving assets
  • manifest.js: Example of using Mincer's manifest compiler

Assets middleware server demo

Run:

node ./server.js

Precompiling assets (Manifest usage)

Run:

node ./manifest.js

Development VS Production mode

By default this demo is running in development mode. That means that it will recompile (server) any changed asset on demand. Also it's not compressing JavaScript and/or Stylesheets in development mode. To run mincer server and manifest in production-ready mode, use NODE_ENV=production environment variable, like so:

NODE_ENV=production node ./server.js