M
M
Max99992020-07-25 18:48:37
Vue.js
Max9999, 2020-07-25 18:48:37

Vue doesn't change styles but adds changes?

Hello. vuecli. In the scss component styles. If I change something in the class, and then I start the assembly, then the css file will contain the old class and the same class with changes ... For example:

.input {
      &__wrapper {
        &::before {
          position: relative;
          content: '';
          top: .1em;
          display: inline-block;
          width: 2em;
          height: 2em;
          border: 2px solid #d5bf7d;
          margin-right: 10px;
        }
      }
    }

I get:
.input __wrapper:before {
    width: 2em;
    height: 2em
}
 .input __wrapper:before {
    position: relative;
    content: "";
    top: .1em;
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #d5bf7d;
    margin-right: 10px
}

How to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question