Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 606 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 606 Bytes

Vite Plugin Smallstep

Plugin runs an async function on the config method, awaiting the fs.readFileSync on CRT/KEY pair waiting to be read correctly.

Based on Smallstep Docker example

Usage

npm install proxymurder/vite-plugin-smallstep
// vite.config.js

import smallstep from 'vite-plugin-smallstep';
export default defineConfig(async ({ mode }) => {
    return {
        plugins: [
            smallstep({
                steppath: STEPPATH // default is '/home/step'
            }),
        ],
    };
});