Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-cdn-import

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-cdn-import - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

LICENSE

8

package.json
{
"name": "vite-plugin-cdn-import",
"version": "0.2.0",
"version": "0.2.1",
"description": "Import packages from CDN for the vite plugin",

@@ -25,4 +25,6 @@ "main": "dist/index.js",

"dev": "npm run build -- --watch",
"example:dev": "npm -C example run dev",
"example:build": "npm -C example run build",
"example:vue": "npm -C example/vue run dev",
"example:react": "npm -C example/react run dev",
"example:vue:build": "npm -C example/vue run build",
"example:react:build": "npm -C example/react run build",
"build": "tsup src/index.ts --dts --format cjs,esm"

@@ -29,0 +31,0 @@ },

@@ -1,9 +0,14 @@

## CDN extension for the vite plugin
# Import modules from CDN with vite plugin
Allowing you to specify the modules you want to externalize from node_modules in development and a CDN in production.
English | [简体中文](README.zh-CN.md)
Basically this will allow you to greatly reduce build time when developing and improve page load performance on production.
[![GitHub tag](https://img.shields.io/github/tag/MMF-FE/vite-plugin-cdn-import.svg)](https://github.com/MMF-FE/vite-plugin-cdn-import/releases)
[![License](https://img.shields.io/github/license/SafdarJamal/vite-template-react)](https://github.com/MMF-FE/vite-plugin-cdn-import/blob/master/LICENSE)
### Installation
Allows you to specify modules to be introduced in a production environment using a CDN.
This can reduce build time and improve page load speed in production environments.
## Installation
Install the plugin with npm:

@@ -21,3 +26,3 @@

### Basic Usage
## Basic Usage

@@ -50,3 +55,3 @@ Add it to vite.config.js

### Options
## Options

@@ -58,3 +63,3 @@ | Name | Description | Type | Default |

#### Module
### Module

@@ -68,3 +73,3 @@ | Name | Description | Type |

### Other CDN pordUrl
## Other CDN pordUrl

@@ -76,5 +81,5 @@ | Name | pordUrl |

### Module Configuration Reference
## Module Configuration Reference
#### React Related
### React Related

@@ -115,3 +120,3 @@ ```js

#### Vue Related
### Vue Related

@@ -144,3 +149,3 @@ ```js

#### other
### Other

@@ -175,5 +180,5 @@ ```js

### Ressources
## Ressources
- [webpack-cdn-plugin](https://github.com/shirotech/webpack-cdn-plugin)
- [rollup-plugin-external-globals](https://github.com/eight04/rollup-plugin-external-globals)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc