Mojolicious::Plugin::AssetPack::Manual::Modes - How AssetPack behaves in different modes
Mojolicious::Plugin::AssetPack behaves different in "production" mode than in "development" mode. The reason for this is that is't often easier to track down bugs in a given file if it's not minified and crammed into one file.
The files in the packed directory will have a checksum added to the filename which will ensure broken browsers request a new version once the file is changed. Example:
This is done using "process".
This plugin will expand the input files to multiple script or link tags which makes debugging and development easier.
TIP! Make morbo watch your less/sass files as well:
$ morbo -w lib -w templates -w public/sass
You can also set the MOJO_ASSETPACK_NO_CACHE environment variable to "1" to pack your assets on each request.
Jan Henning Thorsen -