search

Home  >  Q&A  >  body text

javascript - What does the wavy line in the src attribute in the vue+webpack project mean?

<img src="~examples/assets/images/hamburger.png" class="image">

What does the wavy line here mean?

PHPzPHPz2816 days ago1966

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:37:40

    Absolute path, adding ~ is the absolute path, no matter what path your current .vue file is under. will match the absolute path configured in the example.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 13:37:40

    This is an alias configured in webpack. Configure resolve.alias in webpack and you can use it. Find the relevant configuration yourself

    reply
    0
  • Cancelreply