angular / universal-starter

Angular Universal starter kit by @AngularClass
2.02k stars 688 forks source link

prerendered pages dont have relative path to css/js bundles #666

Open tavelli opened 5 years ago

tavelli commented 5 years ago

steps to reproduce:

  1. clone repo
  2. "npm run build:prerender"

expected: prerendered pages like /dist/browser/lazy/index.html should have relative path references to styles.css, runtime.js, etc.

actual: all paths to css/js bundles seem to be same as root index.html file, which are just file name with no path.

example from lazy route prerender page: /dist/browser/lazy/index.html <link rel="stylesheet" href="styles.3ff695c00d717f2d2a11.css"> <script type="text/javascript" src="runtime.547b4c39066b2d16a666.js">