Files
locker/example/vite.config.ts
T
Vitalii Litvinchuk dc8c379ecf init
2026-06-10 15:09:45 +03:00

19 lines
445 B
TypeScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import { cryptoLockerPlugin } from "@crypto-locker/core/plugin";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
plugins: [
react({
exclude: /\.secret\.[jt]sx?$/,
}),
cryptoLockerPlugin({
password: env.LOCKER_PASSWORD || "secret123",
}),
],
};
});