Why won't python webassets pyscss regenerate css from scss files in debug mode?

北慕城南 提交于 2021-02-07 19:44:50

问题


I'm using the pyscss compiler in the python webassets library with webassets debug configs all set to true. But when I make changes to an scss file and reload the page that includes the generated css file, I see that the css file has not be regenerated and does not include my changes. Why is this happening?


回答1:


Use depends='*.scss' as noted in this issue on GitHub.




回答2:


Figured it out. Webassets does not pick up on changes to scss files that are included in other scss files using @import. The only solution is to always make a change to the including scss file if you make a change to the included one.



来源:https://stackoverflow.com/questions/16826233/why-wont-python-webassets-pyscss-regenerate-css-from-scss-files-in-debug-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!