@jswork/vite-plugin-environment
v1.0.17
Published
Easily expose environment variables in Vite.
Downloads
36
Readme
vite-plugin-environment
Easily expose environment variables in Vite.
installation
npm install @jswork/vite-plugin-environment
usage
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePluginEnvironment from '@jswork/vite-plugin-environment';
// https://vitejs.dev/config/
export default defineConfig({
envDir: 'config/environments',
plugins: [react(), vitePluginEnvironment({ prefix: 'VITE_' })]
});
license
Code released under the MIT license.