Documentation
    Preparing search index...

    Callbacks for keyboard shortcuts actions in the development server

    const callbacks: KeyboardShortcutsCallbacks = {
    onRestart: () => devServer.restart(),
    onClear: () => process.stdout.write('\u001B[2J\u001B[0;0f'),
    onQuit: () => process.exit(0)
    }
    interface KeyboardShortcutsCallbacks {
        onRestart: () => void;
        onClear: () => void;
        onQuit: () => void;
    }
    Index

    Properties

    onRestart: () => void

    Callback to restart the development server

    onClear: () => void

    Callback to clear the console screen

    onQuit: () => void

    Callback to quit the development server