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

[RFC] easywebpack 自动安装缺失依赖 #17

Open
hubcarl opened this issue Mar 30, 2018 · 0 comments
Open

[RFC] easywebpack 自动安装缺失依赖 #17

hubcarl opened this issue Mar 30, 2018 · 0 comments

Comments

@hubcarl
Copy link
Collaborator

hubcarl commented Mar 30, 2018

问题描述

easywebpack 工程化方案 dependencies 内置常用的 loaderplugin,部分默认禁用的loaderplugin 是没有内置到 dependencies 里面,当开启时,需要用户手动安装依赖。

已支持情况

  • 显示配置, npm start 时,会自动检测安装,每次都会检查,导致时间较长,需要优化
install:{
   npm: 'npm', // 默认是 npm, 可以是 cnpm
   check: true // 默认为禁用,自动安装缺少的 loader 和 plugin,建议首次 运行成功后,改成 false,加快构建速度
  },

期望实现

  • 自动检测依赖,无需配置
  • 首次安装成功以后不再检测
  • 配置有变动,需要重新检测缺失插件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant