ulivz / vuepress-plugin-export

Export your VuePress site to a PDF file
MIT License
90 stars 17 forks source link

when installed from NPM, tarball does not contain last version of code #12

Open bernard357 opened 4 years ago

bernard357 commented 4 years ago

The issue is that I wanted to sort pages in exported PDF, but code does not work as expected. As a result, pages are not sorted in resulting PDF.

This problem is caused by a version of index.js in the NPM tarball that is different from the version presented on the Github repository. The version provided in the NPM tarball, while being tagged 0.2.0, does NOT feature usage of the sorted optional function.

Evidence of this difference:

As a workaround, I have added a line to overwrite index.js after the installation of the tarball, by fetching the version from GitHub.

$ npm i vuepress-plugin-export
$ cd node_modules/vuepress-plugin-export/
$ rm index.js
$ wget https://raw.githubusercontent.com/ulivz/vuepress-plugin-export/master/index.js

After that change, the plugin can sort pages as expected.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.79. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.