geelen/react-snapshot

Use with laravel framework

Mixpeal opened this issue · 1 comments

Firstly, thanks for the package.
I wanted to use it with laravel framework, but it seems this package only point to build folder which is not available in laravel, only public folder

is there any hack/tweak for this? please help. thanks

cjke commented

Doesn't really seem related to this project from what I can see (more a create react app question), but even at the create react app level it doesn't allow you to change the build folder.

However, there is zero stopping you from moving the build folder after it has built. For example:

"build": "react-scripts build && react-snapshot && mv ./build ../public",