Automatic page refresh when changing while the pub is working (dart)

I am using the pub function to launch my page. I noticed that for npm there are tools such as lite-serverthose that ensure that after changing the contents of the file, the web page will automatically refresh.

Does anyone have something like this running on a dart with a pub? I thought maybe some chopper script with watcher package could make this work?

+4
source share
1 answer

The pub should handle the monitoring and self-processing of the changes themselves when launched in debug or release mode.

You can make sure that this works correctly by releasing from the project root

pub serve

html dart , .

, --force-poll pub. :

--[no-]force-poll    Force the use of a polling filesystem watcher.
+1

Source: https://habr.com/ru/post/1621710/


All Articles