Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] vite中配置vite-plugin-imp按需引入,未引入的组件,但有大量的scss引入 #4106

Closed
1 task
houyanmin opened this issue Mar 7, 2024 · 0 comments

Comments

@houyanmin
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

引入了这些scss

import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-base/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-cards/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-collapse/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-items/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-table/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/array-tabs/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/editable/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-button-group/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-collapse/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-drawer/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-grid/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-item/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-layout/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form-tab/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/form/style.scss";
import "/node_modules/.pnpm/registry.npmmirror.com+@formily+element-plus@1.0.0-beta.2_vnpzq5f2ppf5pvcpn6hxaaabby/node_modules/@formily/element-plus/esm/space/style.scss";

What does the proposed API look like?

未导入的组件应该没有scss,应该按需引入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant