Optional
mapFile containing initial import map (defaults to importmap.json, supports .js with embedded JSON, or HTML with inline import map)
Optional
conditionsComma-separated environment condition overrides or array of conditions (defaults to ['browser', 'development', 'module'] in normal mode, or ['browser', 'production', 'module'] in production mode)
Optional
resolutionComma-separated dependency resolution overrides or array of resolutions (no default, used to override specific package versions)
Optional
providerOptional
cacheCache mode for fetches (defaults to 'online', accepts 'online', 'offline', 'no-cache')
Optional
rootURL to treat as server root for rebasing import maps (defaults to current directory)
Optional
installInstall mode for resolving dependencies (defaults to 'default')
Optional
compactOutput a compact import map (defaults to false, true for production)
Optional
stdoutOutput the import map to stdout (defaults to false)
Optional
outFile to inject the final import map into (defaults to value of --map or importmap.js)
Optional
flattenFlatten import map scopes into smaller single top-level scope per origin (defaults to false, true for production)
Optional
combineCombine import map subpaths under folder maps (defaults to false, true for production)
Optional
preloadAdd module preloads to HTML output (defaults to undefined, accepts 'static', 'dynamic')
Optional
integrityAdd module integrity attributes to the import map (defaults to false)
Optional
quietSuppress non-essential output (defaults to false)
Optional
showDisplay version information (defaults to false)
Optional
dirDirectory to operate in (defaults to current working directory)
Optional
disableComma-separated list of warnings to disable (e.g., 'file-count')
Optional
portPort to run the server on (defaults to 5776)
Optional
typeEnable/disable TypeScript type stripping (defaults to true)
Optional
staticDisable file watching, auto installs and hot reloading (defaults to false)
Optional
installEnable/disable automatic import map installs in watch mode (defaults to true)
Flags for the serve command to start a development server.
Used by the jspm serve command to run a local development server with live reloading and TypeScript support.