Skip to content

Commit

Permalink
Update docs about minifying build (Closes #330)
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Nov 11, 2017
1 parent 85b577b commit ab26159
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ Docxtemplater will be exported to window.docxtemplater for easy usage.

The generated files of docxtemplater will be in /browser (minified and non minified).

Minifying the build
-------------------

On Browsers that have `window.XMLSerializer` and `window.DOMParser`, you can use that as a replacement for the xmldom dependency.

As an example, if you use webpack, you can do the following in your webpack.config.js :

.. code-block:: javascript
module.exports = {
// ...
// ...
resolve: {
alias: {
xmldom: path.resolve("./node_modules/docxtemplater/es6/browser-versions/xmldom.js"),
},
},
// ...
// ...
}
Bower
-----

Expand Down

0 comments on commit ab26159

Please sign in to comment.