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

mock.js问题 #6

Open
willin opened this issue Aug 10, 2017 · 0 comments
Open

mock.js问题 #6

willin opened this issue Aug 10, 2017 · 0 comments

Comments

@willin
Copy link

willin commented Aug 10, 2017

  1. 如果是产品服务器的话, 是否需要修改源码将 mock 去掉?
  2. mock.js的引入对 webpack 打包(产品环境)有什么样的影响?
  3. 下面这样的写法有意义吗?
if (process.env.NODE_ENV === 'development') {
  const Mock = require('./mock');
  Mock.start();
}
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