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

view-koa下面为什么要加入对生产环境的判断 #6

Closed
JarvanMo opened this issue Jan 6, 2017 · 0 comments
Closed

view-koa下面为什么要加入对生产环境的判断 #6

JarvanMo opened this issue Jan 6, 2017 · 0 comments

Comments

@JarvanMo
Copy link

JarvanMo commented Jan 6, 2017

view-koa
// static file support: if (! isProduction) { let staticFiles = require('./static-files'); app.use(staticFiles('/static/', __dirname + '/static')); }

为什么要这么做的呢?
为什么不是production才导入staticFiles呢?

@JarvanMo JarvanMo closed this as completed Jan 9, 2017
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