host-static
TL;DR
Provides a bootstrap for hosting static files.
Installation
- npm
- yarn
npm add -D @codeceptjs-bootstraps/host-static
yarn add -D @codeceptjs-bootstraps/host-static
Basic usage
const path = require('path')
const { hostStaticBootstrap } = require('@codeceptjs-bootstraps/host-static')
exports.config = {
...hostStaticBootstrap({
path: path.resolve('static'), // path to static files
})
}
Configuration
interface HostStaticOptionsType {
path: string; // Path to static files
enabled?: boolean; // Default true
port?: number; // Default 3001
}