The problem of css scope in vue

css file mode import". / index.less"
is introduced into vue. After being packaged in this way, all css are global styles. Is there any way to solve this problem?
if style tags are officially recommended to add scope, css encounters a problem that css cannot extract separately

Mar.12,2021

"it is officially recommended to add scope, to the style tag, so css encounters a problem that css cannot extract alone"? What are you talking about?


can be extracted normally, and there is no problem

Project creates
clipboard.png

via the latest vue-cli
<style lang="less" src="./index.less" scoped></style>

or

<style lang="less" scoped>
@import './index.less';
</style>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea4d74-47ae2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea4d74-47ae2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?