Static GitHub Issues

[3157] 你好,Nuxt.js中路径匹配问题

prev: Hello, path matching problem in Nuxt.js
next: v-bind:src don't work with the aliases

你好, 在Nuxt.js中,按照官网指示来说,路径匹配为: @import url('~assets/css/style.css') //Error 这样的路径匹配是报错的,而写成这样是可以的: @import url('~/assets/css/style.css') //success

请问标准规范到底怎么写是可以的?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6800">#c6800</a>)</em></sub></div>