Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 845 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 845 Bytes

rollup-plugin-sp-rest-proxy

Rollup plugin for proxy SharePoint request in vite. Inspired by sp-rest-proxy.

Usage

import { defineConfig } from "vite";
import RollupPluginSPRestProxy from "rollup-plugin-sp-rest-proxy";
let rollupPluginSPRestProxy = new RollupPluginSPRestProxy();

export default defineConfig({
  server: {
    proxy: {
      ...rollupPluginSPRestProxy.viteProxySetting(),
    },
  },
  plugins: [rollupPluginSPRestProxy.rollupPlugin()],
});
import { defineConfig } from "vite";
import RollupPluginSPRestProxy from "rollup-plugin-sp-rest-proxy";
let rollupPluginSPRestProxy = new RollupPluginSPRestProxy();

export default defineConfig(
  RollupPluginSPRestProxy.mergeViteConfig({
    /* self vite config */
  })
);