mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
This CL updates `generate_css_files` script and `watch` script to enable us to get CSS file changes instantly applied for non-legacy CSS files. Drive by: * Added an initial build step before starting to watch changes(1) * Improved logs to include the time of the change. * Updated `watch` listener to only get activated on `change` events. (1) was something I was always missing starting this script. You can try the behavior by: * Running `npm run watch` and starting the watch mode. * Opening the DevTools. * Updating a non-legacy CSS file and expect to see the CSS change instantly on the opened DevTools. Bug: none for now Change-Id: I2aa3ed1b36584d1ef011119d5092d12271fb3017 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4922476 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>