Loading node_modules Resources in VSC WebView
Recently, while developing the gitlink plugin, I encountered an issue loading node_modules resources in WebView. Although CDN resources could be used directly, loading local resources is faster. Here’s how to solve the loading of node_modules resources.
Configuration
- Install npm dependency
1 | npm install @highlightjs |
Note that this should be a dependency, not a dev dependency.