Why does the above introduction method always report errors? What is the reason? If you introduce it in style, no errors will be reported.
The path should be a relative path, such as: @import "../assets/font/iconfont.css". If you write this way, you will go to the assets package in node_modules to find the css
@import "../assets/font/iconfont.css"
The path should be a relative path, such as:
@import "../assets/font/iconfont.css"
. If you write this way, you will go to the assets package in node_modules to find the css