Closed n3g2 closed 5 years ago
in package.json
"reactSnap": {
include: ["/a", "/b"]
}
This is my config "reactSnap": { "source": "dist/template/cash", "include": [ "/cashTasks" ], "crawl": false, "minifyHtml": { "collapseWhitespace": false, "removeComments": false } } ... "postbuild": "react-snap"
But got Error: ENOENT: no such file or directory, open 'path to /dist/template/cash/index.html' It read only index.html. How to configure it for to read: /dist/template/cash/cashTasks.html ?
"include": [
"/cashTasks.html"
],
According to your configuration. "reactSnap": { "source": "dist/template/cash", "include": [ "/cashTasks.html" ], "crawl": false, "minifyHtml": { "collapseWhitespace": false, "removeComments": false } }
This is error report
react-snap
events.js:183 throw er; // Unhandled 'error' event ^
Error: ENOENT: no such file or directory, open 'path to/dist/template/cash/index.html'
I think this is a bug.
You can open bug report with reproducible example if you think this is a bug
Now it's just reading index.html. But I have a.html b.html c.html and so on.