简体   繁体   中英

Dart pub trigger transformer build

I'm using Sass in my dart project and build the scss files to css using a transformer. The scss files can import other files so when a scss file is changed all scss files that import the changed file also have to be updated. Currently I run the touch cmd to trigger an update on the other files but this causes issues with text editors thinking the file data has changed. Is there a way to trigger pub to rebuild specific files?

I'm pretty sure there isn't. You can only build all at once or on demand by pub serve but pub serve doesn't actually create files. SASS can be started as a service to watch for file changes (instead of using the transformer) maybe this route it's easier to get what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM