dvajs / dva-example-user-dashboard

👲 👬 👨‍👩‍👧 👨‍👩‍👦‍👦
446 stars 205 forks source link

fix npm start error #21

Closed blackmatch closed 4 years ago

blackmatch commented 7 years ago

I clone the origin repo, and then 'npm install', and then 'npm start', and then error cccured! Need to run 'roadhog buildDll' bebofe 'roadhog server'.This PR fixes the error.

Zuckjet commented 7 years ago

thanks

MinJieLiu commented 7 years ago

@blackmatch Is this better?

"scripts": {
  "start": "roadhog server",
  "build": "roadhog build",
  "build:dll": "roadhog buildDll",
  "postinstall": "npm run build:dll",
},
blackmatch commented 7 years ago

postinstall means Run AFTER the package is installed. Maybe it's better. @MinJieLiu

sorrycc commented 7 years ago

postinstall means Run AFTER the package is installed. Maybe it's better. @MinJieLiu

Agree.