-
-
Notifications
You must be signed in to change notification settings - Fork 378
Closed
Labels
Description
version
:
{
// ...
"vue": "^3.2.19",
"ant-design-vue": "^2.2.8",
"vite": "^2.5.10",
"unplugin-vue-components": "^0.15.4"
}
vite.config.js
:
{
// ...
css: {
preprocessorOptions: {
less: {
modifyVars: {
'primary-color': '#3351c7',
'border-radius-base': '10px'
},
javascriptEnabled: true
}
}
},
plugins: [
Components({
resolvers: [
AntDesignVueResolver(),
],
dts: true,
include: [/\.vue$/, /\.vue\?vue/, /\.tsx$/, /\.jsx$/]
})
]
}
The component does not change after startup, If I introduce the whole thing in the entry without using unplugin-vue-components
, the style will change.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ekxs0109 commentedon Oct 19, 2021
+1
ekxs0109 commentedon Oct 19, 2021
importStyle: "less"
可以正常使用自定义样式
nabaonan commentedon Oct 21, 2021
use less option is ok , default is css
i7eo commentedon Oct 21, 2021
alright i got it
lifedever commentedon Apr 17, 2022
赞👍