@michijs/dev-server
v0.7.24
Published
Development server based on esbuild
Downloads
897
Maintainers
Readme
Michijs Dev Server
Development server built on top of esbuild.
Main features
- Configure esbuild options with Typescript
- First-class PWA support
- Custom environments
- Packages distribution
Getting started
You can use the following test project or setup a project from scratch:
npm install -D @michijs/dev-server
CLI commands
You have the following CLI commands:
Configure the server
To configure the server you just need to create an optional file called michi.config.ts at the root of your project. This file would look like this:
import { ServerConfig, ServerConfigFactory, DefaultEnvironment } from '@michijs/server';
export const config: ServerConfigFactory = (environment) => {
const defaultConfig: ServerConfig = {
// Your custom configuration
}
return defaultConfig;
};
export default config;