A
A
Alexander Lysenko2017-08-22 11:54:08
Laravel
Alexander Lysenko, 2017-08-22 11:54:08

Laravel and front end, who can explain?

Hello. There is a question about the front in Laravel.
Which approach is better? Or are there other methods?
For example, I installed naked Lara, installed npm, then I chose, for example, a frame, let it be bulma (it doesn’t matter which one). In the resources/assets/sass/app.scss file, I
replaced

// Bootstrap
@import "~bootstrap-sass/assets/stylesheets/bootstrap";

well, I wrote down the krch path to bulma there.
Everything is ok, I compiled it using npm run dev.
Now I have a css and js source file.
Can I edit this css file now? Change some properties in the class that do not suit me. Or add something to the bulma frame class. Or can't it be done? If you take a framework, is editing its classes a bad practice? :)
Just with these node_modules dependencies, it’s kind of cool, but damn it, if you need to fix something in the script, add, add something to css, then you can’t do this t .to. don't touch dependencies...
Another approach. Can I just download bulma, put it in some folder (probably in the public folder, yes? Or is there another folder for this?) And then just write the path to the files and that's all, and now you can edit them as you want.
Maybe I'm doing something wrong?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GrimJack, 2017-08-22
@GrimJack

You don’t need to edit anything in the public folder, with the next npm run *** you will wipe everything
Create your css / sass / less file (s), connect after all the frameworks and libs. And there already make your changes.
Well, this is very short .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question