From a6cfbcb3ed8da420e67e5507368eeeb8aedee746 Mon Sep 17 00:00:00 2001 From: Elia Lazzari Date: Wed, 9 Mar 2022 19:01:31 +0100 Subject: [PATCH] Edited README.md and increased version --- README.md | 17 ++++++++++------- package.json | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7472757..0911f5c 100644 --- a/README.md +++ b/README.md @@ -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): @@ -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. + diff --git a/package.json b/package.json index 4216dea..118ee69 100644 --- a/package.json +++ b/package.json @@ -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": {