Answer the question
In order to leave comments, you need to log in
Compiling sass on the server?
There is a site that is on the server, is it possible to make sass compile to a css file that is also on the server. The only option to access the server is FTP (SFTP). In which direction to dig and is it possible at all?
Answer the question
In order to leave comments, you need to log in
It is necessary to dig towards the deployment to the server, after compiling from sass. Naturally, various npm plugins can help with this.
For example: https://github.com/sindresorhus/gulp-ftp
The task will look something like this (did not try it)
gulp.task('deploy', function () {
return gulp.src('src/style.sass')
.pipe(sass())
.pipe(rename('style.css')
.pipe(ftp({
host: 'website.com',
user: 'johndoe',
pass: '1234'
}));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question