[DOC] clarify tutorial

The part about setting up the various files did not express clearly that
we need the iife file, not the cjs.
This commit is contained in:
Géry Debongnie
2021-09-20 15:31:41 +02:00
committed by aab-odoo
parent 600f1e35d4
commit c0a62dfd05
+3 -1
View File
@@ -70,7 +70,9 @@ just put the following code:
Note that we put everything inside an immediately executed function to avoid leaking
anything to the global scope.
Finally, `owl.js` should be the last version downloaded from the Owl repository (you can use `owl.min.js` if you prefer).
Finally, `owl.js` should be the last version downloaded from the Owl repository (you can use `owl.min.js` if you prefer). Be aware that you should download the `owl.iife.js` or `owl.iife.min.js`, because these files
are built to run directly on the browser (other files such as `owl.cjs.js` are
built to be bundled by other tools).
Now, the project should be ready. Loading the `index.html` file into a browser
should show an empty page, with the title `Owl Todo App`, and it should log a