Static GitHub Issues

[3158] Hello, path matching problem in Nuxt.js

prev: The iphone shows an abnormality.
next: 你好,Nuxt.js中路径匹配问题

Hello, In Nuxt.js, the path match is as follows:

@import url('~assets/css/style.css') //Error

This path matching is an error, and writing it like this is possible:

@import url('~/assets/css/style.css') //success

How can the standard specification be written in the end?

<!--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/c6801">#c6801</a>)</em></sub></div>