A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.
82
A lightweight HTTP server for serving static assets during frontend development with automatic rebuilds on file changes.
Starts a development server that serves static files from specified directories.
Serves files from mounted directories with proper content types.
text/html content type @testAutomatically detects file changes and triggers rebuilds.
Gracefully stops the server and cleans up resources.
@generates
/**
* Starts a development server for serving static assets.
*
* @param {Object} commandOptions - Configuration options for the server
* @param {number} commandOptions.port - Port number to listen on (default: 8080)
* @param {string} commandOptions.hostname - Hostname to bind to (default: 'localhost')
* @param {Object} commandOptions.config - Server configuration including mount points
* @param {Object} options - Additional server options
* @returns {Promise<Object>} Server instance with methods for handling requests
*/
async function startServer(commandOptions, options) {
// Implementation here
}
/**
* Shuts down the server gracefully.
*
* @param {Object} serverInstance - The server instance to shut down
* @returns {Promise<void>}
*/
async function shutdownServer(serverInstance) {
// Implementation here
}
module.exports = {
startServer,
shutdownServer
};Provides development server functionality with unbundled file serving, file watching, and on-the-fly transpilation.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-snowpackevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10