search

Home  >  Q&A  >  body text

javascript - vue introduces style problem

Why does the above introduction method always report errors? What is the reason? If you introduce it in style, no errors will be reported.

三叔三叔2771 days ago740

reply all(1)I'll reply

  • 某草草

    某草草2017-06-26 10:58:07

    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

    reply
    0
  • Cancelreply