Skip to content

How to get yaml.min.js? #589

Answered by eemeli
WTIFS asked this question in Q&A
Nov 22, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

By bundling and minifying it, the same as with any other library? Something like this should work:

npm install --no-save yaml rollup @rollup/plugin-terser
npx rollup ./node_modules/yaml/browser/dist/index.js --plugin terser --file yaml.min.js --format umd --name YAML

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WTIFS
Comment options

Answer selected by WTIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants