You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark Story edited this page Nov 20, 2015
·
11 revisions
Asset Compress includes a Shell that can be used to create and clear build files. You can realize considerable performance boosts by using the shell to generate compiled assets before you deploy. Static assets that are minified and concatenated reduce page size and improve actual and perceived page performance.
Building files
Using the shell to build files is ideal when you want to integrate with a build or deployment script. The build task will generate all the assets defined in your Configuration file:
bin/cake asset_compress build
All generated files will be put into the configured cache directories. By default, the build shell will skip re-building files that don't appear to have any changes. The shell compares the mtime of the build file, and the component files. If all of the components have an older time than the build file, the build file will not be regenerated. You can suppress this behavior using the force option.
bin/cake asset_compress build --force
Clearing build files
You may want to clear the generated files. Only files defined in the Configuration file will be cleared. Use the following: