Skip to content

Commit

Permalink
Edited README.md and increased version
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Mar 9, 2022
1 parent 19b98f6 commit a6cfbcb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,13 @@ to this:
```json
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build; npx js-seo-ingector",
"build": "react-scripts build && npx js-seo-ingector",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
```

Then we can run the build script:
```bash
npn run build
```

and the seo tags will be injected into the index.html file.
And then we have to create a seo.json file in the same directory as the package.json file.

Example json file (seo.json):

Expand Down Expand Up @@ -78,3 +73,11 @@ Example json file (seo.json):
"manifest": null
}
```

Then we can run the build script:
```bash
npn run build
```

and the seo tags will be injected into the index.html file.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-seo-ingector",
"version": "1.0.1",
"version": "1.0.3",
"description": "A Javascript command to automatically modify the main html file (like index.html) to add the provided SEO meta tags and more. Designed for Create React App.",
"main": "./src/index.js",
"scripts": {
Expand Down

0 comments on commit a6cfbcb

Please sign in to comment.