init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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",
|
||||
}),
|
||||
],
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user