GoogleChromeLabs / http2-push-manifest

Generate a list of static resources for http2 push.
https://www.npmjs.com/package/http2-push-manifest
Apache License 2.0
187 stars 23 forks source link

Error with path, but finds resources anyway #7

Open kenchris opened 8 years ago

kenchris commented 8 years ago

The imports in the files are like this:

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/paper-styles/paper-styles.html">
<link rel="import" href="../../bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html">
<link rel="import" href="../../bower_components/paper-dialog-behavior/paper-dialog-behavior.html">

<link rel="import" type="css" href="../../bower_components/paper-dialog-behavior/paper-dialog-common.css">
<script src="../../bower_components/quagga/dist/quagga.min.js" type="text/javascript"></script>

But it seems like it only goes back one directory (../) instead of two (../../):

webnfc-shoppingcart-demo (master)$ http2-push-manifest -f static/elements/write-dialog/write-dialog.html 
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/quagga/dist/quagga.min.js
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/polymer/polymer.html
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/paper-styles/paper-styles.html
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/paper-dialog-behavior/paper-dialog-behavior.html
ERROR finding /home/kenneth/repo/webnfc-shoppingcart-demo/static/elements/write-dialog/bower_components/paper-dialog-behavior/paper-dialog-common.css
Found 6 resource URLs in write-dialog.html:
   /bower_components/paper-dialog-behavior/paper-dialog-common.css
   /bower_components/quagga/dist/quagga.min.js
   /bower_components/paper-dialog-behavior/paper-dialog-behavior.html
   /bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html
   /bower_components/paper-styles/paper-styles.html
   /bower_components/polymer/polymer.html
Wrote push_manifest.json
ebidel commented 8 years ago

Is it possible for you to attach a small .zip of a directory structure that repos the problem?

kenchris commented 8 years ago

The code is here https://github.com/01org/webnfc-shoppingcart-demo

Running gulp copies the files to static/ but you should be able to test with app/ as well