Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

bundler not able to process input from another dir #2004

Open victorbucutea opened 6 years ago

victorbucutea commented 6 years ago

I have the following code :

const parse5 = require('parse5'); const Bundler = require('polymer-bundler').Bundler; const bundler = new Bundler();

bundler.generateManifest(['./public/index.html']).then((manifest) => { console.log(manifest); bundler.bundle(manifest).then((result) => { console.log(parse5.serialize(result.documents.get('index.html').ast)); }); });

This doesn't work!!!! :-1: Why in the world does the generateManifest only accept files from the same directory the process was launched? Why? If I replace (['./public/index.html']) with (['index.html']) and move the script in the same folder, it works flawlessly.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.