Skip to content

Commit

Permalink
Add init command to npm run script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanelian committed Apr 7, 2021
1 parent 47d4c1b commit dee35f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ A local installation in the project is usually more desirable for pinning and sy

2. Open command prompt in that folder to install instapack locally: `npm install instapack -D -E`

3. Add [npm run scripts](https://docs.npmjs.com/cli/run-script) in `package.json` to enable `npm run prod` or `npm run dev`:
3. Add [npm run scripts](https://docs.npmjs.com/cli/run-script) in `package.json`:

```json
{
"scripts": {
"init": "ipack new react",
"prod": "ipack",
"dev": "ipack -dw"
"dev": "ipack -R"
}
}
```
Expand Down

0 comments on commit dee35f4

Please sign in to comment.