zhanfang

Results 3 issues of zhanfang

koa中间件实现原理中 ``` return co(function *(){ ...... })(); ``` 代码有问题,改为如下 ``` return co(function *(){ ...... }); ``` > co的执行方式直接为co(gen);

edp官网对webserver stylus官方配置如下 ``` { location: /\.styl($|\?)/, handler: [ file(), stylus() ] } ``` 运行edp webserver之后会报错,查看原因是stylus()函数中compileOptions参数没有设置,默认参数也没有,建议stylus默认配置改为如下 ``` { location: /\.styl($|\?)/, handler: [ file(), stylus({ paths: [], filename: '' }) ] },...