Skip to content

rquanx/rollup-plugin-sp-rest-proxy

Repository files navigation

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 */
  })
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published