mjsarfatti / create-react-app-laravel Goto Github PK
View Code? Open in Web Editor NEWThis project forked from facebook/create-react-app
Set up a modern web app by running one command.
License: MIT License
This project forked from facebook/create-react-app
Set up a modern web app by running one command.
License: MIT License
Can't create project.. it says,
Could not create a project called "React" because of npm naming restrictions:
* name can no longer contain capital letters
Hey First of all thanks for the package, It is very useful for our development process. It was okay for us to do yarn start. I followed the wiki, put all my react app inside the resources/react-app/
, build it, start it, it works on localhost.
However i'm using laravel valet and want to know the production product, as i was following your wiki, I realise that when I do yarn build
it will generate app.blade.php
I created my route according to the wiki:
Route::get('/app{any?}', function () {
return view('app');
})->where('any', '.*')->name('app');
And checked with php artisan route:list
However when i go to react.test/app it shows 404 not found, what could possibly go wrong?
Yarn build shows as follow:
11:18:35 yarn build
yarn run v1.19.2
$ react-scripts build
Creating an optimized production build...
Moving index.html to app.blade.php...
Compiled successfully.
File sizes after gzip:
696.04 KB public/static/js/2.201af8fa.chunk.js
136.14 KB public/static/js/5.c312edf2.chunk.js
122.61 KB public/static/js/3.82eae810.chunk.js
116.25 KB public/static/css/main.8b3e86b4.chunk.css
52.26 KB public/static/js/main.215cae4c.chunk.js
42.19 KB public/static/js/6.2ec62092.chunk.js
15.65 KB public/static/js/4.07b53652.chunk.js
14.46 KB public/static/css/2.dd8ca586.chunk.css
1.2 KB public/static/js/runtime-main.4beeba3a.js
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:
"homepage" : "http://myname.github.io/myapp",
The public folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s public
Find out more about deployment here:
https://bit.ly/CRA-deploy
✨ Done in 33.05s.
Now that react-scripts v4 is released, do you plan to upgrade your awesome tool ?
Thank you !
Provide a template to like --template Laravel-typescript
to use this alternative
Hi,
I have a reactjs ready template that uses app.scss to @import css files from node_modules folder and it keep giving me:
"Module not found: Can't resolve"
How to solve this ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.