mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: prefer ~
to @
alias in examples (#24574)
This commit is contained in:
parent
758b8beb51
commit
8934eb31d9
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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[]}
|
||||
|
Loading…
Reference in New Issue
Block a user