jandc / asset-manager
Library to combine and mangle your assets and version them
Installs: 1 636
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
- matthiasmullie/minify: ^1.3
- twig/twig: ^1.0
README
Library to combine and mangle your assets and version them. For now only JavaScript is supported.
Usage
You can use the assetManager class out of the box, or register the Twig Extension to your twig environment. Notably you can use the 'manglejs'/'endmanglejs' tags to encapsulate inline javascript in your template to mangle and minify them
Dependencies
If you enable loadJS please include the loadJS library in your <head></head>
.