From 010cfdb5b38b45dcfe878c24fcbf87e5c47cb146 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Fri, 23 Feb 2018 15:48:34 +1300 Subject: [PATCH] Update advanced setup --- docs/Advanced-Setup.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/Advanced-Setup.md b/docs/Advanced-Setup.md index 8cf2db6..9bfad49 100644 --- a/docs/Advanced-Setup.md +++ b/docs/Advanced-Setup.md @@ -2,13 +2,27 @@ If your project [does not use a `:main` config](../README.md#important-prerequisites) then you will need to do more work to setup your project. -You will need this JavaScript to be included on your page before you initialize your application: +You will need to manually set the Closure defines, and require `day8.re-frame-10x.preload` on your page before you initialize your application. An example: + +```html + + + + + + + +``` + +These are the two key lines that need to be added to your bootstrap process. ```js var CLOSURE_UNCOMPILED_DEFINES = {"re_frame.trace.trace_enabled_QMARK_":true}; document.write(''); - -// Must come before you initialize your application, but after `goog` and your other dependencies have been loaded. ``` This setup is inherently project specific, so open an issue if you have trouble, and we'll try and figure it out. Or if possible switch to using a `:main`.