docs: prefer ~ to @ alias in examples (#24574)

This commit is contained in:
xxhls 2023-12-05 20:40:04 +08:00 committed by GitHub
parent 758b8beb51
commit 8934eb31d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@ export default defineNuxtConfig({
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/_colors.scss" as *;'
additionalData: '@use "~/assets/_colors.scss" as *;'
}
}
}
@ -93,7 +93,7 @@ export default defineNuxtConfig({
css: {
preprocessorOptions: {
sass: {
additionalData: '@use "@/assets/_colors.sass" as *\n'
additionalData: '@use "~/assets/_colors.sass" as *\n'
}
}
}

View File

@ -215,7 +215,7 @@ export default defineNuxtConfig({
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/_colors.scss" as *;'
additionalData: '@use "~/assets/_colors.scss" as *;'
}
}
}
@ -229,7 +229,7 @@ export default defineNuxtConfig({
css: {
preprocessorOptions: {
sass: {
additionalData: '@use "@/assets/_colors.sass" as *\n'
additionalData: '@use "~/assets/_colors.sass" as *\n'
}
}
}

View File

@ -275,9 +275,9 @@ export default defineUntypedSchema({
* // Load a Node.js module directly (here it's a Sass file).
* 'bulma',
* // CSS file in the project
* '@/assets/css/main.css',
* '~/assets/css/main.css',
* // SCSS file in the project
* '@/assets/css/main.scss'
* '~/assets/css/main.scss'
* ]
* ```
* @type {string[]}