webdev
4.1.0, released 3 weeks ago by tools.dart.dev
A command-line tool for developing and deploying web applications with Dart.
What it does
Provides a local web development server with a file system watcher to rebuild on changes. Includes features for debugging web apps, launching in Chrome, and building applications for deployment.
AI-written summary of version 4.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are developing a web application with Dart.
- You need a local development server with file watching and automatic rebuilds.
Skip it when
- You are building non-web Dart applications (like mobile or desktop).
- You want to use it as a library dependency instead of activating it globally.
Strengths
- Integrates debugging features and DevTools support for Dart web apps.
- Supports automatic page refresh and module reloading.
Weaknesses
- Not meant to be used as a package dependency, must be globally activated.
- Requires specific build_runner and build_web_compilers setup.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 27
Activate globally using `dart pub global activate webdev` and configure dev_dependencies like build_runner and build_web_compilers in pubspec.yaml.
dart pub global activate webdev
webdev serveAlternatives
Packages that do the same job and could replace webdev.
- flutterpi_tool
A tool to make development and distribution of flutter-pi apps easier.
77Compare - flutter_gpu_shaders
Build tool that compiles Flutter GPU shader bundles via a build hook.
69Compare - msix
CLI tool that creates MSIX installers from Flutter Windows build outputs.
77Compare - get_cli
Official CLI for the GetX framework to scaffold projects, files, and manage dependencies.
50Compare
Works with
Packages commonly used together with webdev: ones it builds on, ones built on it, and its own family.
- vm_servicewebdev depends on itA library to communicate with a service implementing the Dart VM service protocol.
- yamlwebdev depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptowebdev depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semverwebdev depends on itVersions and version constraints implementing pub's versioning policy.
- stack_tracewebdev depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- poolwebdev depends on itManage a finite pool of resources to control concurrent operations.
- iowebdev depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- pubspec_parsewebdev depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.