marked icon indicating copy to clipboard operation
marked copied to clipboard

Why is the minified build in version control?

Open illright opened this issue 4 years ago • 3 comments

I noticed that the marked.min.js file was updated by a bot a couple of days ago, while the last time it was updated before was 7 years earlier. Could this be a mistake? Maybe this file was never intended to make it into VC?

illright avatar Apr 14 '21 06:04 illright

This is probably something we should remove in the future but it is in version control so people can use it with a script tag.

<script src="https://cdn.jsdelivr.net/gh/markedjs/marked/marked.min.js"></script>

UziTech avatar Apr 14 '21 15:04 UziTech

I don't know where jsdelivr takes the files from, but unpkg, for instance, takes them from the npm package, which makes sense and keeps the VC free of build files

illright avatar Apr 14 '21 16:04 illright

jsdelivr can use the github repo or npm package. We could deprecate building in the repo and only allow the npm package.

UziTech avatar Apr 14 '21 16:04 UziTech

Marked also uses it in the Demo for referencing certain commits

tristan-f-r avatar Dec 30 '22 16:12 tristan-f-r