mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Something warning about styleResources
This commit is contained in:
parent
c3bcda873c
commit
e5f7001eb5
@ -27,6 +27,12 @@ You need to specify the patterns/path you want to include for the given pre-proc
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:warning: If you want to use `@import` in these `styleResources` files, you should use path aliase (`~@`) like this
|
||||||
|
|
||||||
|
```scss
|
||||||
|
@import '~@/assets/other.scss';
|
||||||
|
```
|
||||||
|
|
||||||
Then in your pages, you can use directly:
|
Then in your pages, you can use directly:
|
||||||
|
|
||||||
`pages/index.vue`
|
`pages/index.vue`
|
||||||
|
Loading…
Reference in New Issue
Block a user