N
N
NaumovInnokentiy2532019-05-14 18:17:19
Vue.js
NaumovInnokentiy253, 2019-05-14 18:17:19

Do I need to move the code to a separate css in vue?

Hello, there is a fairly large application. CSs files in it are organized as an assembly of sass files. In this application, there are also applications on vue, i.e. php gives a page with a vue application and then the work happens like a spa. Separate files are used for components, where their styles are described. So the question is, is it worth removing the styles from vue and adding them to the styles of the main application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tolmachev, 2019-05-14
@NaumovInnokentiy253

It all depends on your application really. Common pieces that apply a lot where it makes sense to transfer them to sass, but vue styles have the advantage that you can set a separate style for each component, and override the general styles for that particular component. So everything depends on your code, if you use style overriding for a component, then it makes sense to leave it in vue , if not, shift it to sass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question