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

define 插件。 #39

Closed
shenqihui opened this issue Feb 16, 2017 · 1 comment
Closed

define 插件。 #39

shenqihui opened this issue Feb 16, 2017 · 1 comment

Comments

@shenqihui
Copy link
Contributor

shenqihui commented Feb 16, 2017

希望能增加个 define 的插件。

使用场景

  1. 开发时,把 __DEV__ 定义为 true ,__PROD__ 定义为 false ,用于预编译。
  2. 生产环境,把 __DEV__ 定义为 false ,__PROD__ 定义为 ture ,用于预编译。
@shenqihui
Copy link
Contributor Author

使用新的 replace 插件,就可以实现这个功能。关闭。

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