Recently, I used uinapp to develop H5 pages for the first time. After joint debugging, I found that there were too many styles and the pages were too redundant. I thought about putting the styles in a separate scss file. As a result, the styles and penetration did not take effect. After careful study, I just found the problem, hereby record it, I hope it can help everyone!
In this way, according to the official writing, the style will not take effect
<style lang="scss" scoped>
@import url('./index.scss');
</style>
need to write like this
<style lang="scss" scoped>
@import './index.scss';
</style>
If it helps you, give it a thumbs up