You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running: vite --config D:\autoproject\vite_vuecli\node_modules\vue-cli-plugin-vite\config\index.ts
TypeError: styleImport is not a function
提示不是一个函数
所以应该如果正确的引入vite插件呢?
if you find some problems, please first read the FAQ
if you want some new feature, please know this plugin aims to let codebase work both in vite and vue-cli.
vue.config.js
const styleImport = require('vite-plugin-style-import');
module.exports = {
pluginOptions:{
vite:{
disabledTypeChecker:true,
plugins:[
styleImport({
libs: [
{
libraryName: 'vant',
esModule: true,
resolveStyle: (name) =>
vant/es/${name}/style
,},
],
})
]
}
}
}
pluginOptions 打印出来是空的
The text was updated successfully, but these errors were encountered: