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

Respect --no-minify when building CDN assets #3913

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

allejo
Copy link
Member

@allejo allejo commented Oct 31, 2023

When building the grammars for CDN, they will always be minified in the build directory, regardless of the --no-minify flag given to tools/build.js.

Changes

I know CDN assets will never be published in a non-minified format. However, if these grammars are built in a non-minified way, they can be used to address highlightjs/highlightjs.org#5. Since the /download bundle uses a concatenated version of minified grammars, the non-minified distribution should use the same grammars.

@github-actions
Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change +6 B

View Changes
file base pr diff
es/core.min.js 8.13 KB 8.14 KB +2 B
es/highlight.min.js 8.13 KB 8.14 KB +2 B
highlight.min.js 8.17 KB 8.17 KB +2 B

@joshgoebel joshgoebel merged commit c9e7cbf into main Nov 2, 2023
15 of 16 checks passed
Copy link

github-actions bot commented Nov 2, 2023

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change +6 B

View Changes
file base pr diff
es/core.min.js 8.13 KB 8.14 KB +2 B
es/highlight.min.js 8.13 KB 8.14 KB +2 B
highlight.min.js 8.17 KB 8.17 KB +2 B

@allejo allejo deleted the allejo/respect-non-min-cdn branch November 3, 2023 07:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants