cdnjs / new-website

🖥 cdnjs.com website
https://cdnjs.com
ISC License
451 stars 212 forks source link

Hide file types that are not distributed by the cdn #321

Closed xtuc closed 4 years ago

xtuc commented 4 years ago

We filter out files given a list of extension that can be distrubted by the cdn.

Example that don't work https://cdnjs.cloudflare.com/ajax/libs/antd/4.0.0-rc.1/antd.dark.less https://cdnjs.cloudflare.com/ajax/libs/antd/4.0.0-rc.1/report.html, that can you find on https://cdnjs.com/libraries/antd/4.0.0-rc.1.

MattIPv4 commented 4 years ago

@xtuc Can you find the full list of extensions the cdn permits? I've never actually seen the full list.

xtuc commented 4 years ago

The list is js, css, png, gif, jpg, jpeg, swf, svg, ttf, eot, woff, woff2, otf, map, cur, mp3, ogg, aac, scss, webp, json with wasm, hpb being extensions that we will add.