Make package.json valid json object

This commit is contained in:
Joseph Samela
2019-01-11 13:43:22 -05:00
committed by GitHub
parent e6ca241a27
commit 7f0fc2a821

View File

@@ -72,10 +72,12 @@ You will also need an `index.html` file that will use your bundle. Here is a sim
With simple scripts you can introduce the commands `npm run build` and `npm start` to manually build your bundle and watch for changes, respectively. Add the following to the script section in `package.json`:
```json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel index.html",
"build": "parcel build --public-url . index.html"
{
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel index.html",
"build": "parcel build --public-url . index.html"
}
}
```
That's it. Now to run your application, enter