Try to get onto this ASAP, because the next time Unpkg goes down it. The CDN URL will override the default one.įor example, if you want to set the CDN URL for anime, go to NexT config file and add a key named anime in the vendors section, and set its value to the CDN URL of anime.js: NexT config file vendors:Īnime: recommended to use the same version of the library as in _vendors.yml to avoid potential problems. If it does, transition to a content distribution network such as CDNJS or JSDelivr. The libname is the same as in the _vendors.yml file. The config is in format of libname: CDN URL. # custom_cdn_url: custom_cdn_url: $įurthermore, you can configure the CDN URL of each library individually in the vendors section. Open a file called index. To start, in a new directory, create a blank HTML document. In this step, you will create an HTML page, use JavaScript for dynamic activity, and start a local development server to track your changes. # The default CDN provider of third-party plugins. Step 1 Creating an HTML Page and Inserting JavaScript. # Warning: If you are using the latest master branch of NexT, please set `internal: local` Add the following script tag to the of your index.html file: unpkg.# Available values: local | jsdelivr | unpkg | cdnjs | custom # The CDN provider of NexT internal scripts. You can specify a proper CDN provider in the vendors section in NexT config file, which can make the static assets of plugins load faster.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |