Guest User

Untitled

a guest
Sep 9th, 2020
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [BS] [debug] -> Starting Step: Finding an empty port
  2. [BS] [debug] Found a free port: 3000
  3. [BS] [debug] Setting Option: port - 3000
  4. [BS] [debug] +  Step Complete: Finding an empty port
  5. [BS] [debug] -> Starting Step: Getting an extra port for Proxy
  6. [BS] [debug] +  Step Complete: Getting an extra port for Proxy
  7. [BS] [debug] -> Starting Step: Checking online status
  8. [BS] [debug] Resolved www.google.com, setting online: true
  9. [BS] [debug] Setting Option: online - true
  10. [BS] [debug] +  Step Complete: Checking online status
  11. [BS] [debug] -> Starting Step: Resolve user plugins from options
  12. [BS] [debug] +  Step Complete: Resolve user plugins from options
  13. [BS] [debug] -> Starting Step: Set Urls and other options that rely on port/online status
  14. [BS] [debug] Setting multiple Options
  15. [BS] [debug] +  Step Complete: Set Urls and other options that rely on port/online status
  16. [BS] [debug] -> Starting Step: Setting Internal Events
  17. [BS] [debug] +  Step Complete: Setting Internal Events
  18. [BS] [debug] -> Starting Step: Setting file watchers
  19. [BS] [debug] +  Step Complete: Setting file watchers
  20. [BS] [debug] -> Starting Step: Merging middlewares from core + plugins
  21. [BS] [debug] Setting Option: middleware - List [ function webpackDevMiddleware(req, res, next) {
  22.                 function goNext() {
  23.                         if(!context.options.serverSideRender) return next();
  24.                         return new Promise(function(resolve) {
  25.                                 shared.ready(function() {
  26.                                         res.locals.webpackStats = context.webpackStats;
  27.                                         resolve(next());
  28.                                 }, req);
  29.                         });
  30.                 }
  31.  
  32.                 if(req.method !== "GET") {
  33.                         return goNext();
  34.                 }
  35.  
  36.                 var filename = getFilenameFromUrl(context.options.publicPath, context.compiler, req.url);
  37.                 if(filename === false) return goNext();
  38.  
  39.                 return new Promise(function(resolve) {
  40.                         shared.handleRequest(filename, processRequest, req);
  41.                         function processRequest() {
  42.                                 try {
  43.                                         var stat = context.fs.statSync(filename);
  44.                                         if(!stat.isFile()) {
  45.                                                 if(stat.isDirectory()) {
  46.                                                         var index = context.options.index;
  47.  
  48.                                                         if(index === undefined || index === true) {
  49.                                                                 index = "index.html";
  50.                                                         } else if(!index) {
  51.                                                                 throw "next";
  52.                                                         }
  53.  
  54.                                                         filename = pathJoin(filename, index);
  55.                                                         stat = context.fs.statSync(filename);
  56.                                                         if(!stat.isFile()) throw "next";
  57.                                                 } else {
  58.                                                         throw "next";
  59.                                                 }
  60.                                         }
  61.                                 } catch(e) {
  62.                                         return resolve(goNext());
  63.                                 }
  64.  
  65.                                 // server content
  66.                                 var content = context.fs.readFileSync(filename);
  67.                                 content = shared.handleRangeHeaders(content, req, res);
  68.                                 var contentType = mime.lookup(filename);
  69.                                 // do not add charset to WebAssembly files, otherwise compileStreaming will fail in the client
  70.                                 if(!/\.wasm$/.test(filename)) {
  71.                                         contentType += "; charset=UTF-8";
  72.                                 }
  73.                                 res.setHeader("Content-Type", contentType);
  74.                                 res.setHeader("Content-Length", content.length);
  75.                                 if(context.options.headers) {
  76.                                         for(var name in context.options.headers) {
  77.                                                 res.setHeader(name, context.options.headers[name]);
  78.                                         }
  79.                                 }
  80.                                 // Express automatically sets the statusCode to 200, but not all servers do (Koa).
  81.                                 res.statusCode = res.statusCode || 200;
  82.                                 if(res.send) res.send(content);
  83.                                 else res.end(content);
  84.                                 resolve();
  85.                         }
  86.                 });
  87.         }, function(req, res, next) {
  88.     if (!pathMatch(req.url, opts.path)) return next();
  89.     eventStream.handler(req, res);
  90.     if (latestStats) {
  91.       // Explicitly not passing in `log` fn as we don't want to log again on
  92.      // the server
  93.      publishStats("sync", latestStats, eventStream);
  94.    }
  95.  } ]
  96. [BS] [debug] +  Step Complete: Merging middlewares from core + plugins
  97. [BS] [debug] -> Starting Step: Starting the Server
  98. [BS] [debug] Proxy running, proxing: http://cdir.localhost:9999
  99. [BS] [debug] Running mode: PROXY
  100. [BS] [debug] +  Step Complete: Starting the Server
  101. [BS] [debug] -> Starting Step: Starting the HTTPS Tunnel
  102. [BS] [debug] +  Step Complete: Starting the HTTPS Tunnel
  103. [BS] [debug] -> Starting Step: Starting the web-socket server
  104. [BS] [debug] Setting Option: clientEvents - List [ "scroll", "scroll:element", "input:text", "input:toggles", "form:submit", "form:reset", "click" ]
  105. [BS] [debug] +  Step Complete: Starting the web-socket server
  106. [BS] [debug] -> Starting Step: Starting the UI
  107. [BS] [debug] Setting Option: session - 1599675363070
  108. [BS] [UI] Starting Step: Setting default plugins
  109. [BS] [UI] Step Complete: Setting default plugins
  110. [BS] [UI] Starting Step: Finding a free port
  111. [BS] [UI] Step Complete: Finding a free port
  112. [BS] [UI] Starting Step: Setting options also relevant to UI from BS
  113. [BS] [UI] Step Complete: Setting options also relevant to UI from BS
  114. [BS] [UI] Starting Step: Setting available URLS for UI
  115. [BS] [debug] Getting option via path: [ 'urls' ]
  116. [BS] [UI] Step Complete: Setting available URLS for UI
  117. [BS] [UI] Starting Step: Starting the Control Panel Server
  118. [BS] [UI] Using port 3001
  119. [BS] [UI] Step Complete: Starting the Control Panel Server
  120. [BS] [UI] Starting Step: Add element events
  121. [BS] [UI] Step Complete: Add element events
  122. [BS] [UI] Starting Step: Registering default plugins
  123. [BS] [UI] Step Complete: Registering default plugins
  124. [BS] [UI] Starting Step: Add options setting event
  125. [BS] [UI] Step Complete: Add options setting event
  126. [BS] [debug] +  Step Complete: Starting the UI
  127. [BS] [debug] -> Starting Step: Merge UI settings
  128. [BS] [debug] Setting Option: urls - Map { "local": "http://localhost:3000", "external": "http://192.168.0.3:3000", "ui": "http://localhost:3001", "ui-external": "http://192.168.0.3:3001" }
  129. [BS] [debug] +  Step Complete: Merge UI settings
  130. [BS] [debug] -> Starting Step: Init user plugins
  131. [BS] [HTML Injector] Running...
  132. [BS] [debug] Setting Option: userPlugins - [object Object]
  133. [BS] [debug] +  Step Complete: Init user plugins
RAW Paste Data