D
D
Dmitry_Vladimirson2020-07-19 14:23:54
css
Dmitry_Vladimirson, 2020-07-19 14:23:54

How to replace imports with code in Scss file?

It is necessary to make another scss file from one scss file, in which there are a lot of imports, in which all imports are replaced by the code that they include.
I am importing whole scss files, I need to make a new file with pure code, no imports. Maybe some gulp plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Markov, 2020-07-19
@En-Tilza

Export file:

@mixin font-h1 {
  color: #333;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.4;
}

Import file
h1 {
  @include font-h1;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question