mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-01-09 21:46:56 -06:00
commit
dac561b8a7
@ -24,13 +24,13 @@ const runCommandWithOutput = command => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const replaceTextOnFile = ({
|
const replaceTextOnFile = async ({
|
||||||
file,
|
file,
|
||||||
textToBeReplaced,
|
textToBeReplaced,
|
||||||
textReplace,
|
textReplace,
|
||||||
arrOfObjectsBeReplaced
|
arrOfObjectsBeReplaced
|
||||||
}) => {
|
}) => {
|
||||||
fs.readFileSync(file, 'utf8', function (err,data) {
|
await fs.readFile(file, 'utf8', function (err,data) {
|
||||||
let result
|
let result
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.error(err);
|
return console.error(err);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aleleba/create-react-ssr",
|
"name": "@aleleba/create-react-ssr",
|
||||||
"version": "3.0.43",
|
"version": "3.0.44",
|
||||||
"description": "Starter Kit of server side render of react",
|
"description": "Starter Kit of server side render of react",
|
||||||
"bin": "./bin/cli.js",
|
"bin": "./bin/cli.js",
|
||||||
"main": "src/server/index",
|
"main": "src/server/index",
|
||||||
|
Loading…
Reference in New Issue
Block a user