-
|
Hi, if I don't have access to a build system, is it possible to use this completely from a CDN? |
Beta Was this translation helpful? Give feedback.
Answered by
jonpyt
May 10, 2024
Replies: 1 comment 1 reply
-
|
Yes, the package is ESM, so it will run in a browser without a build step. If you want to use unpkg, #3 explains how. Obviously replace The code in the package is not minified, so using a CDN here is heavily discouraged in production, but for prototyping this is not an issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thdoan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the package is ESM, so it will run in a browser without a build step. If you want to use unpkg, #3 explains how. Obviously replace
@2.2.2in the links with@3.3.1for the current version. Note: prism grammar imports where changed in version 3, so the example in #3 must be changed slightly.The code in the package is not minified, so using a CDN here is heavily discouraged in production, but for prototyping this is not an issue.