I'm using Json Serializable in my flutter web app, so during the dev process i used to run the following command to generate the toJson and fromJson code:
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
But now i want to build my app to deploy it, so obvisouly i'm deleting the files generated during the dev process, thinking the flutter build web
will generate again the sources but in a more definitive way.
Obviously it didn't and I can't understand how to build my app without running the build_runner build
. Because, coming from a js background, as it is a dev dependency, it shouldn't be involved in the final build process.
If someone could explain me, it would be very welcome