Do I have to use sass?

during the initial setup of the project replaced the vue on react
php artisan ui react
he told me in devDependencies in package.json hooked sass and sass-loader, without these components will not work?

and bootstrap... is also not needed. and jQuery
April 19th 20 at 12:01
1 answer
April 19th 20 at 12:03
Solution
Not at all. He'll create the application template. At desire it is possible to throw out superfluous - quite normal practice
I'd rather have extra just throw-that-be not to delete anything manually then.. you need to work with laravel react? Don't quite understand how it works just do.
"devDependencies": {
 "@babel/preset-react": "^7.0.0",
 "axios": "^0.19",
 "bootstrap": "^4.0.0",
 "cross-env": "^7.0",
 "jquery": "^3.2",
 "laravel-mix": "^5.0.1",
 "lodash": "^4.17.13",
 "popper.js": "^1.12",
 "react": "^16.2.0",
 "react-dom": "^16.2.0",
 "resolve-url-loader": "^3.1.0",
 "sass": "^1.15.2",
 "sass-loader": "^8.0.0"
 }
- skylar73 commented on April 19th 20 at 12:06
or rather, I don't know why just do laravale to say that I will use react - skylar73 commented on April 19th 20 at 12:09
sass and sass-loader in theory do not have to use (although preferably it or other preprocessor still use). axios is also not necessary - can use fetch (not forgetting the polyfill). bootstrap and jquery as written, is not necessary. laravel-mix - is to build (and the build webpack to use - how convenient). lodash library with all sorts of additions to js - can you do without. pooper-js is a plugin for tooltips (can be removed). resolve-url-loader - for correct URL generation for images, fonts, etc. in the Assembly. - dameon_Legros43 commented on April 19th 20 at 12:12
@skylar73not understand the question. In package.json written all dependencies - this file deals with npm, not laravel. Well, when I write php artisan ui react, he just puts you all the dependencies and writes them here. All. Laravel job is complete - dameon_Legros43 commented on April 19th 20 at 12:15
@dameon_Legros43, i.e. basically what I did was ask leavel to give me the initial frontend settings? You can easily get by without it, in templates to use a JSX and it will work? Just started to learn, I do not know whether larval associated with templates in General, or just routing them makes all of the rest of the front? - skylar73 commented on April 19th 20 at 12:18
@skylar73, Yes. The frontend laravel does (unless you count laravel-mix) - dameon_Legros43 commented on April 19th 20 at 12:21
@dameon_Legros43, thank you) - skylar73 commented on April 19th 20 at 12:24

Find more questions by tags Laravel