Make package.json valid json object
This commit is contained in:
@@ -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`:
|
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": {
|
{
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"scripts": {
|
||||||
"start": "parcel index.html",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "parcel build --public-url . index.html"
|
"start": "parcel 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
|
||||||
|
|||||||
Reference in New Issue
Block a user