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
+2
View File
@@ -72,11 +72,13 @@ 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`: 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 ```json
{
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel index.html", "start": "parcel index.html",
"build": "parcel build --public-url . index.html" "build": "parcel build --public-url . index.html"
} }
}
``` ```
That's it. Now to run your application, enter That's it. Now to run your application, enter