Pankaj Thakur
Pankaj Thakur

Reputation: 93

Is there any method to edit SASS/LESS files online via FTP

I am working on a SASS project for an efficient code writing. Everything was good until I was working on my local system, but now I have uploaded the files to server and every time I need to make edits, I need to work on my local and then re-upload to server, which is so time consuming. Is there any other way to reduce this time and instead re-uploading the files, I can edit the SASS files online? Would like to know from you guys.

Upvotes: 1

Views: 2136

Answers (3)

Fanky
Fanky

Reputation: 1785

You can use Sublime Text's SFTP package and its "Monitor file" feature appreciated by many here.

Upvotes: 0

Eugene Mikhushkin
Eugene Mikhushkin

Reputation: 175

In theory you can edit, but it won't compile in CSS. For that you should start your Compass/Gulp or whatever you using on local machine, upload CSS files and only then it will display changes in your browser. For live upload you can use Gulp-SASS and Gulp-SFTP. Gulp will watch files and upload them on change to the server. Here is an article, may be it will be usefull for you

Upvotes: 2

LWilson
LWilson

Reputation: 444

I agree with @RobertWade that this should be part of your version control and build process. You may like to start with a simple gulp sass build process running on your server. Here's a walkthrough http://ryanchristiani.com/getting-started-with-gulp-and-sass/

Upvotes: 2

Related Questions