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:
@@ -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.
|

|
||||||
|
|
||||||
> ### Notice
|
> ### Notice
|
||||||
> There are some cases you have to refresh app yourself.
|
> There are some cases you have to refresh app yourself.
|
||||||
|
|||||||
Reference in New Issue
Block a user