A
A
Alexey2020-04-15 16:41:48
css
Alexey, 2020-04-15 16:41:48

How to automatically convert LESS to CSS and save to server?

Hello!

Downloaded Sublime Text 3. Installed the less2css plugin. When I save LESS, a new CSS file is created, everything is as it should be. The only problem is that it is saved in a temporary folder on the computer C: \ Temp \, but I would like it to be on the server so that I don’t have to upload it from the computer every time. Is this real?

Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Koryakin, 2020-04-15
@KRACKER

Realistically, but for greater efficiency, you will have to transfer the project to assemblers like Gulp / WebPack.
Also, the community has long collected "packs" for simplified work with layout - https://webdesign-master.ru/blog/tools/2019-07-15-... .
Still dig towards "deploy".

M
Mikhail Agapov, 2020-04-15
@agmike

If it’s quite simple, then there are node.js + gulp or WebPack builds that do everything automatically with the necessary configuration.
For example here https://github.com/dDenysS/gulp-template or here https://github.com/tars/tars
You can read, configure and use

A
arsenty, 2020-04-15
@arsenty

For the sake of one file, there is no point in messing with webpack if you know how to use the terminal (for example, with fswatch, rsync, ssh).

fswatch -o . | while read f; do rsync -azPv -e "/usr/bin/ssh -p44262 -q" --include="*.css" ~/myproject [email protected]:~/myproject; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question