Topic "Auto minify js and css files on upload"

Author Message
rotaercz
[View user's profile]

Joined: 2015-07-09
Posts: 1
Location: United States
It'd be awesome if there was an option to toggle on and off auto minify js and css files on upload.

So basically all I have to do is drag and drop the files for upload and it automatically minifies the css and js files and puts them on the server. This way the files on the server would always be minified.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
You can create a local custom command that minifies the js/css and upload the result.
See https://winscp.net/eng/docs/guide_custom_commands_automation

I may try to write a sample code.
What tool do you use to minify the js/css?
Guest




Actually I just did it with incrond inotify on my server but thank you for the amazing response though!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License