Open pandrr opened 1 year ago
highlight.js
is the stand-alone core library. The only real build asset of custom build is highlight.min.js
...
What would be the reasons to include a non-minified custom build?
because in my case i use it to build a bigger file with multiple libs in there and minify them again.
This seems an edge case to me (for most users) - more custom builds can easily use our official build toolchain... @allejo up to you if you want to add this to the new website or welcome a PR for it.
One problem is we'd have to rejigger the naming, which could break peoples assumptions about the download content.
@allejo didn't we fix this now?
Fixed in https://github.com/highlightjs/highlightjs.org/pull/10 where api/download.ts#L159-L164
POST /download
returns the old behavior for legacy reasons, butPOST /api/download
returns the unminified now also concatenated
Describe the issue/behavior that seems buggy
first: thanks for the great work, appreciate it !
when creating a custom package on your website, a custom .min.js file is created inside the zip. the non minified version seems to not contain any languages and has an old file date.
Sample Code or Instructions to Reproduce
Expected behavior
highlight.js contains the selected languages.
Additional context
see filedates in the zip file: