Locally run project webpack tips Compiled successfully vue

 

  In recent github download and run other people's vue After the project, the following chart success tips compiled, but the project did not start
 
  
 
 
  At first I thought it was the port issue, modify the config-index.js in the port port, after the re-run is still on the drawing tips
 
  Then I suspect that npm run dev command there is a problem, the general default project start command is npm run dev , but the start command itself can be configured,
  Then I looked at the start command to configure the project is npm run dev
 
  This time I was a little blinded, run the project and no error message, and prompts compiled successfully, but why the project did not start on their own it?
  Then began a frenzied Baidu, but did not find any solution, in desperation, my brain flash, self-starting, self-starting, and so on. . .
 
  The original start thinking of yourself around into a misunderstanding - I think that regardless of their own or someone else's project will vue configuration command to automatically start the project
 
  But in fact automatically start the project needs in config-index.js configuration file autoOpenBrowser: true,
  Before I self-configured with the property, so the default for others is also configured with the property (which is cured thinking ah)
 
  Therefore, in the absence of the configuration of the property, direct the browser address bar enter  localhost: port number on the line
  Ah ah ah, dig their own pit, but also fill out crying

Guess you like

Origin www.cnblogs.com/tu-0718/p/11459468.html