D
D
Denyaroshenko2020-02-03 11:58:18
css
Denyaroshenko, 2020-02-03 11:58:18

How to finalize the compiled CSS if you don’t want to write in bare CSS, but there are no SASS sources?

Sometimes tasks arise: to create a new block for the site, to make a mobile version for an existing site, etc. And, as a rule, we only have FTP access to the server where the minified CSS is located. There is usually no gulp or webpack project.

How can you conveniently modify existing compiled style files using preprocessors and assemblers?

If I need to make a new block, I usually make it separate from the site for which this block is made, then I compile SCSS and paste it at the end of the existing CSS file. What to do if you need to modify, for example, the mobile version of the site? Is there any convenient way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-02-03
@denyaroshenko

  1. Need to import .css file to .scss
  2. Use the compiled .css code optimization tool. For this, for example, cssnano is suitable . He knows how to remove repetitive pieces of code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question