Skip to content

svitejs/vite-plugin-protect

Repository files navigation

IMPORTANT, READ FIRST

This is an experiment to see what can be achieved with plugins to adapt the behavior of vite dev server for additional needs Some experiments might not ever be useful to you, others might land in vite. The existence of this plugin does not mean vite is pushing users security out into a user concern, quite the opposite.

@svitejs/vite-plugin-protect

npm version CI

A plugin to enhance security of the dev server in Vite.

Installation

npm install --save-dev @svitejs/vite-plugin-protect

Usage

// vite.config.js
import { defineConfig } from 'vite';
import { protect } from '@svitejs/vite-plugin-protect';

export default defineConfig({
  plugins: [
    protect({
      /* plugin options */
    })
  ]
});

Documentation

Packages

Package Changelog
@svitejs/vite-plugin-protect Changelog

Got a question? / Need help?

Join the Vite Discord server!

Development

  • Run pnpm i to install dependencies
  • Run pnpm dev in packages/playground to start a Vite app

Note that changes in the plugin needs restart of the Vite dev server.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published