mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Merge pull request #2584 from yoyo837/dev
Something warning about styleResources
This commit is contained in:
commit
47af154320
@ -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:
|
||||
|
||||
`pages/index.vue`
|
||||
|
Loading…
Reference in New Issue
Block a user