@cpro-js/vite-ui5-resources-proxy-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

22.6 kB

Total Files

9

Last publish

Collaborators

  • texttechne
  • zinserjan