2
當使用配置選項greenscript.minimize=true
和Greenscript時,所有CSS url資源都會出錯。例如,使用jQuery UI,播放框架+ Greenscript +'url'CSS規則=錯誤路徑
.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
將尋找images/ui-bg_highlight-soft_100_eeeeee_1x100.png
的gs
文件夾下,並不會找到它,因爲資源是styles/themes/lightness
下(例如)。
一個明顯的解決方案是手動將所有相對路徑替換爲絕對路徑。但有沒有另一種(更好的)解決方案(不必修改原始CSS文件)?
有用的信息! (關於修復) –
在v1.2.6c中修復:https://github.com/greenlaw110/greenscript/issues/18#issuecomment-2035619 –