Skip to content

Commit

Permalink
Use Puppeteer for BTR and support statically generating route index f…
Browse files Browse the repository at this point in the history
…iles (#91)

* Support history api and statically generated html per route

* fs-extra

* Tweak history api btr and add unit tests

* Add support to prefix relative srcs

* revert build script

* Convert css urls based on the relative path of the built static

* fix paths in tests

* fix test

* calculate the public path for index.html's generated during BTR

* Inject base path

* Swap JSDOM for puppeteer when running BTR

* replace head with original and ensure history routing prefixed with /

* Change the plugin lifecycle to after emit so that the build doesn't complete until btr finished

* Support pupeteer options

* Use the correct puppeteer options

* Get entry name from manifest

* href to pathname and replace localhost urls in generated html

* next version of framework
  • Loading branch information
agubler authored Nov 27, 2018
1 parent 2a87b88 commit 4f21fb4
Show file tree
Hide file tree
Showing 25 changed files with 1,394 additions and 881 deletions.
2 changes: 1 addition & 1 deletion intern.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./node_modules/@dojo/scripts/intern/base.json",
"coverage": [
"./dist/dev/src/**/*.js"
"./dist/dev/src/**/*.js", "!./dist/dev/src/build-time-render/helpers.js"
],
"capabilities+": {
"name": "@dojo/webpack-contrib"
Expand Down
Loading

0 comments on commit 4f21fb4

Please sign in to comment.