vite-plugin-auto-refresh
v0.0.2
Published
Auto refresh your website to the latest version
Downloads
7
Readme
vite-plugin-auto-refresh
auto refresh your website to the latest version
Install
npm i vite-plugin-auto-refresh
vite.config.ts
import { defineConfig } from 'vite';
import AutoRefresh from 'vite-plugin-auto-refresh';
export default defineConfig({
...
plugins: [AutoRefresh()],
...
});
Config Options
interface Config {
fileName?: string;
outDir?: string;
isDev?: boolean;
language?: 'EN' | 'CN';
}
const defaultConfig = {
fileName: 'manifest',
outDir: 'public',
isDev: false,
language: 'CN',
};