vite中定义全局基础样式
import path from 'path'
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
additionalData: `@import "${path.resolve(__dirname, 'src/assets/css/common.less')}";`
}
}
}
标签:less,样式,vite,path,全局,css
From: https://www.cnblogs.com/jia-zq/p/16742920.html