babel.config.js 436 B

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