module.exports = { plugins: [ [ 'import', { libraryName: 'element-plus', // 由于 customStyleName 在配置中被声明的原因,`style: true` 会被直接忽略掉, // 如果你需要使用 scss 源文件,把文件结尾的扩展名从 `.css` 替换成 `.scss` 就可以了 customStyleName: (name) => `element-plus/lib/theme-chalk/${name}.css` , }, ], ], };