You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
在组件中导入了一个
@import "./common/styles/index";
但是在改变index.scss后没有即时显示。
原因:
wepy的 --watch选项只监听了被改变的文件,而没有一并监听引用该文件的文件,当更新index.scss后,组件中import的scss代码不会改变。
解决办法,在wpy组件内部导入
<style src="../common/styles/index.scss" lang="scss"></style>
而不是用import
,但是不使用import
会造成无法使用规定好的variablesThe text was updated successfully, but these errors were encountered: