mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-18 09:28:51 +08:00
🐛 tw template
This commit is contained in:
parent
0cef7ba436
commit
0cf7db80fe
@ -50,22 +50,22 @@ export const installTailwind = (
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
transform: {
|
transform: {
|
||||||
vue: (content) => {
|
vue: (content) => {
|
||||||
return content.replaceAll(/(?:\\r\\n|\\r|\\n)/g, ' ')
|
return content.replaceAll(/(?:\\r\\n|\\r|\\n)/g, ' ')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
extract: {
|
extract: {
|
||||||
vue: (content) => {
|
vue: (content) => {
|
||||||
return [
|
return [
|
||||||
...defaultExtractor(content),
|
...defaultExtractor(content),
|
||||||
...customSafelistExtractor(${JSON.stringify(
|
...customSafelistExtractor(${JSON.stringify(
|
||||||
moduleOptions.prefix,
|
moduleOptions.prefix,
|
||||||
)}, content, ${JSON.stringify(
|
)}, content, ${JSON.stringify(
|
||||||
nuxt.options.appConfig.rayui.colors,
|
nuxt.options.appConfig.rayui.colors,
|
||||||
)}, ${JSON.stringify(moduleOptions.safelistColors)})
|
)}, ${JSON.stringify(moduleOptions.safeColors)})
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
safelist: generateSafelist(${JSON.stringify(
|
safelist: generateSafelist(${JSON.stringify(
|
||||||
moduleOptions.safeColors || [],
|
moduleOptions.safeColors || [],
|
||||||
)}, ${JSON.stringify(nuxt.options.appConfig.rayui.colors)}),
|
)}, ${JSON.stringify(nuxt.options.appConfig.rayui.colors)}),
|
||||||
|
Loading…
Reference in New Issue
Block a user