@zely-js/static
v4.0.2
Published
static plugin for zely-js
Readme
@zely-js/static
@zely-js/static is a plugin for zely server that serves static files from a specified directory under a given URL prefix.
Installation
npm install @zely-js/staticUsage
import { staticPlugin } from '@zely-js/static';
export default defineConfig({
plugins: [staticPlugin('/static', './public')],
});prefix(string): URL prefix to serve static files (e.g.,/static)directory(string): Local directory path containing static files
