Minify CSS locally on remote server files

In PhpStorm, is it possible to select a css file on a remote server, minify it (locally) and upload it minified as my.min.css - without having a project for it?

0

> without having a project for it?

Could you please elaborate this?
Is this supposed to work via a CLI command?

0
Avatar
Permanently deleted user

Hello,

No, unfortunately it is not possible.

How do you aсcess this server? Maybe you can work this out with minifying application directly?

0

I'm working on a bunch of servers, which are accessible through the remote server feature in phpstorm.

I don't have _all_ these servers' content as an individual project, it would cost gb's on space on my drive - I also don't need to do anything else, there are just a bunch of css files, which needs to be maintained somewhen.

So, I'd like to have the possibility, just to edit the my.css file locally, and save it as my.min.css remotely

Maybe there's another way to achieve this!? Is it possible to have a project which just contains the css files locally and ignore the rest?

Please advise :) 

0

Hi there,

>Maybe there's another way to achieve this!? Is it possible to have a project which just contains the css files locally and ignore the rest?

Yes.

Just create empty local project, configure deployment (so you can connect to your (S)FTP/etc and browse it) and download only needed files.

Sure, you will see warnings about missing resources (image/font/etc) when you referring to them in your files (e.g. in your .css -- url("/some/image.png")) -- but you can just ignore them or disable that particular inspection (as you have no plans to download those resources at all).

0

请先登录再写评论。