.. _builds: =============== Creating builds =============== .. contents:: Table of Contents :depth: 3 :local: .. warning:: There current documentation in this section does not adequately explain how to create custom builds. .. note:: Please make sure to read the section :doc:`development` and that you have installed all development dependencies (long story short, you should be able to just run ``make dev``) Creating builds =============== We use `require.js `_ to keep track of *Converse.js* and its dependencies and to to bundle them together in a single file fit for deployment to a production site. To create the bundles, simply run:: make build This command does the following: * It creates different Javascript bundles of Converse.js. The individual javascript files will be bundled and minified with `require.js`_'s optimization tool, using `almond `_. You can `read more about require.js's optimizer here `_. * It bundles the HTML templates in ``./src/templates/`` into a single file called ``templates.js``. This file can then be included via the ``