GithubHelp home page GithubHelp logo

mjsarfatti / create-react-app-laravel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebook/create-react-app

46.0 46.0 6.0 11.29 MB

Set up a modern web app by running one command.

License: MIT License

JavaScript 98.07% CSS 0.13% HTML 0.13% Shell 1.27% AppleScript 0.07% TypeScript 0.21% PHP 0.12%

create-react-app-laravel's People

Contributors

amyrlam avatar andriijas avatar arcanis avatar bondz avatar bradfordlemley avatar brunolemos avatar enoahnetzach avatar existentialism avatar fson avatar gaearon avatar greengremlin avatar ianschmitz avatar iansu avatar jeffposnick avatar lacker avatar mareksuscak avatar mjsarfatti avatar mrmckeb avatar mxstbr avatar petetnt avatar ro-savage avatar ryansully avatar selbekk avatar sidoshi avatar tharakawj avatar timer avatar tuchk4 avatar viankakrisna avatar vjeux avatar xiaoxiangmoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

create-react-app-laravel's Issues

Accessing react.test/app goes 404

Describe the bug

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.

React-scripts v4 upgrade

Now that react-scripts v4 is released, do you plan to upgrade your awesome tool ?

Thank you !

@import from node_modules

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.