File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ exports.run = (options) => {
71
71
72
72
function parse ( req , res , format ) {
73
73
const dateFormat = 'YY.MM.DD HH:mm:ss' ;
74
+ /*eslint-disable */
74
75
const status = ( function ( ) {
75
76
switch ( true ) {
76
77
case 500 <= res . statusCode :
@@ -83,6 +84,7 @@ exports.run = (options) => {
83
84
return '\x1b[32m' ;
84
85
}
85
86
} ) ( ) ;
87
+ /*eslint-disable */
86
88
87
89
let contentLength = res . _contentLength || '' ;
88
90
if ( contentLength ) {
@@ -166,6 +168,7 @@ exports.run = (options) => {
166
168
if ( project . check ( ) ) {
167
169
compiler = project . getServerCompiler ( function ( config ) {
168
170
let nextConfig = extend ( { } , config ) ;
171
+ // entry应该是个空对象, 这样如果没有找到请求对应的entry, 就不会编译全部入口
169
172
nextConfig . entry = { } ;
170
173
171
174
// 将webpack entry设置为当前请求的资源
You can’t perform that action at this time.
0 commit comments