You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note: You can also import directly from fully static URLs, such as our very own pre-built ES6 Module CDN resources. See [Fetch via CDN](#fetch-via-cdn) for specific examples.*
**Note:***The CDN-hosted `highlight.min.js` package doesn't bundle every language.* It would be
396
441
very large. You can find our list of "common" languages that we bundle by default on our [download page][5].
397
442
398
-
####Download prebuilt CDN assets
443
+
### Download prebuilt CDN assets
399
444
400
445
You can also download and self-host the same assets we serve up via our own CDNs. We publish those builds to the [cdn-release](https://github.com/highlightjs/cdn-release) GitHub repository. You can easily pull individual files off the CDN endpoints with `curl`, etc; if say you only needed `highlight.min.js` and a single CSS file.
401
446
@@ -418,6 +463,14 @@ npm install highlight.js
418
463
yarn add highlight.js
419
464
```
420
465
466
+
There is also another npm package [@highlightjs/cdn-assets](https://www.npmjs.com/package/@highlightjs/cdn-assets) that contains prebuilt CDN assets including [ES6 Modules that can be imported in browser](#browser-es6-modules):
467
+
468
+
```bash
469
+
npm install @highlightjs/cdn-assets
470
+
# or
471
+
yarn add @highlightjs/cdn-assets
472
+
```
473
+
421
474
Alternatively, you can build the NPM package from source.
0 commit comments