Add a new entry point script for the client application
Add a new bundle (build/boot.js) which serves as the main entry point for the client. This entry point will be used in two places: 1. When embedded in a host web page it will add the bundle for the annotation layer (injector.bundle.js) to the page plus supporting assets. 2. When included as the sole asset in the sidebar's HTML page it will add the bundle for the sidebar app (app.bundle.js) to the page plus supporting assets. Having both entry points be a single script means that when it is referenced in app.html, the browser will already have it cached locally, saving a roundtrip. In this commit the script just adds all <script> and <link> tags for the annotation layer or sidebar to the document. In future it can be made smarter - eg. by preloading sidebar assets when loaded in the host page and not loading polyfills in newer browsers.
Showing
... | ... | @@ -49,6 +49,8 @@ |
"gulp-changed": "^1.3.0", | ||
"gulp-if": "^2.0.0", | ||
"gulp-postcss": "^6.1.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-replace": "^0.5.4", | ||
"gulp-sass": "^2.2.0", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"gulp-util": "^3.0.7", | ||
... | ... |
src/boot/boot.js
0 → 100644
src/boot/index.js
0 → 100644
src/boot/test/boot-test.js
0 → 100644
Please register or sign in to comment