The easiest way to add a frontend library is:
- Add it as a dependency in the
bower.json, or try from console
bower install --save dependency-name
- Update the overrides in
bower.json, if necessary.
- Include the the styles in the
- Include the scripts by updating the
config.coffee. Note that if your front-end library has dependencies on other libraries being loaded, you will need to add them in here, too.
- Execute the
gulpcommand if it's not already running (or restart it if it is).
By following these steps you will not need to add the third party libraries into your repository and everything will be minified before deployment.
If you are not able to include it as a bower dependency, simply create a new folder under the
main/static/ directory and include them as described in the steps 3—5 above.