Socket
Book a DemoInstallSign in
Socket

@cpro-js/vite-ui5-resources-proxy-plugin

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cpro-js/vite-ui5-resources-proxy-plugin

latest
Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
4
100%
Maintainers
0
Weekly downloads
 
Created
Source

Vite UI5 Resources Proxy Plugin

A custom Vite plugin to configure Vite's proxy for loading UI5 sources from Content Delivery Network (CDN). All requests to /resources and /test-resources will be proxied to the configured CDN (default: https://ui5.sap.com).

Setup

npm install --save-dev @cpro-js/vite-ui5-resources-proxy-plugin

vite.config.ts

import { defineConfig } from "vite";
import viteUI5ResourcesProxyPlugin from "@cpro-js/vite-ui5-resources-proxy-plugin";

return defineConfig({
  // ...
  plugins: [
    // ...
    viteUI5ResourcesProxyPlugin({
      version: "1.120.6",
      url: "https://ui5.sap.com",
      debug: false
    }),
  ],
});

License

MIT - see License.

FAQs

Package last updated on 10 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts