1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Modify build.md accompanied by npm run dev-start

This commit is contained in:
asmsuechan
2017-03-26 23:15:36 -07:00
parent ae36ed2b46
commit e6a2521143

View File

@@ -11,25 +11,19 @@ Install requirement packages.
$ npm install $ npm install
``` ```
Build codes. Build codes and run.
``` ```
$ npm run webpack $ npm run dev-start
``` ```
After a few seconds, you will see this message. This command runs `npm run webpack` and `npm run hot` in parallel. It means it is the same thing to run those commands in 2 terminals.
``` And webpack will watch the code changes and apply it automatically.
webpack: bundle is now VALID.
```
Then, we have to run the app. If this error: `Failed to load resource: net::ERR_CONNECTION_REFUSED` happens, please reload Boostnote.
```
$ npm run hot
```
> Actually the app can be start with `npm start`. However, the app will use the compiled script.
By this, webpack will watch the code changes and apply it automatically. ![net::ERR_CONNECTION_REFUSED](https://cloud.githubusercontent.com/assets/11307908/24343004/081e66ae-1279-11e7-8d9e-7f478043d835.png)
> ### Notice > ### Notice
> There are some cases you have to refresh app yourself. > There are some cases you have to refresh app yourself.