webdev icon indicating copy to clipboard operation
webdev copied to clipboard

Add an enforce-lockfile command line option

Open Wdestroier opened this issue 1 year ago • 0 comments

Hi!

When compiling an app to production it's important to know how it will behave. Dart has a pubspec.lock file with the exact version of each dependency. pubspec.yaml may resolve different versions in local/development environment and later when the app is published. Apparently webdev doesn't have a --enforce-lockfile flag. This flag is documented in https://dart.dev/tools/pub/packages#get-dependencies-for-production.

How can we make webdev use the pubspec.lock file?

Wdestroier avatar Jan 09 '25 23:01 Wdestroier