tony19 / polymer-typescript-starter-kit

Polymer Starter Kit w/TypeScript support
Other
4 stars 3 forks source link

Split files remain in `build/debug` during live reload #5

Closed tony19 closed 7 years ago

tony19 commented 7 years ago

When an HTML file's script or style is edited, the live reload step fails to rejoin the .js, .ts, .css (the files are left intact in the debug folder, and the HTML contains references to them).

Steps to reproduce

  1. Run gulp and then gulp serve.
  2. Edit the script or style in src/components/my-view1/my-view1.html.
  3. Observe a reload occurs with the appropriate tasks run.
  4. Observe the build/debug contains the split files (identified by my-view1.html_script_0.js, etc.) instead of only the HTML.
tony19 commented 7 years ago

The rejoins were fixed such that the HTML no longer references the split files (39c04f06c1adc81a0033e4027db7d1e632e4b2d0), but the split files themselves are still left behind. This is only a minor issue, since they're left behind in the build/debug directory, which is meant to be temporary.

tony19 commented 7 years ago

Actually, 39c04f0 fixed the entire issue. I was seeing the generated typings file (*.d.ts), and thought it was the split .ts file. That will be tracked in a separate issue.