Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue loading CBOR binary files #26

Closed
mspanish opened this issue May 8, 2019 · 0 comments
Closed

Issue loading CBOR binary files #26

mspanish opened this issue May 8, 2019 · 0 comments

Comments

@mspanish
Copy link

mspanish commented May 8, 2019

Hello! I use CBOR binary files to load all of my JSON for artwork (parsed first from svg to json) - as it's much faster and smaller than using bloated JSON files. In case you are not familiar with CBOR, here is the link.

Using Svelte v2 and the 'npm run build' command in the package.json file - which uses

"rollup-plugin-serve": "^0.4.2",

The CBOR files all load correctly. But when I switched to Svelte v3, using the 'npm run build' which uses

"sirv-cli": "^0.4.0",

Now for all of the CBOR files I get a 404. To double check where the problem was, I closed the command window and tried using a server called Mongoose to load the base index.html file - and then under another localhost port I loaded my v3 app, and all of the CBOR files loaded correctly. Here is the screenshot of the 404 problem using sirv, from Chrome dev tools:

sirv_cbor_404

And here is using the older rollup plugin for Svelte v2

cbor_failure

Please let me know if you need any more details! Thanks so much for your work on the new Svelte, it's an incredible tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant