Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
73 stars 13 forks source link

Does MinifyAll Extension Work with SFTP #79

Closed dougkozar closed 3 years ago

dougkozar commented 3 years ago

I use SFTP by liximomo for file uploads to the server. When I minify a file using your extension, it saves locally but does not upload to the server. My SFTP settings are set to upload on save and works fine with all files on my local machine except newly minified files.

Does your extension interact with SFTP to auto upload to the server upon local save & minify? If so, how do I make it happen?

Thank you!

Josee9988 commented 3 years ago

Hi, the extension does not interact at any way with SFTP, it should not be a problem at all. If you are automating the process, make sure you minify the file with the name that you are expecting and then uploading it.

dougkozar commented 3 years ago

I was looking to see if there was anyway for your extension to auto upload to the server on save (in addition to it saving the minified file locally). I was hoping I would not have to open the minified file in VS Code and the manually upload it.

For example:

Josee9988 commented 3 years ago

I have a npm extension so you could fully automate it without needing to open vscode. Here is the project https://github.com/Josee9988/MinifyAllCli

dougkozar commented 3 years ago

Ok, but I think the answer to posted question is "no", I cannot set the MinifyAll extension to auto upload a saved/minified file to the server, Correct?

dougkozar commented 3 years ago

I can alter my processes to manually save (so it auto uploads to the server) the newly minified file but when I do, I get another minified file. See screenshot. Just an FYI. Screen-Shot-2021-02-22-at-1-53-52-PM

Josee9988 commented 3 years ago

Ok, but I think the answer to posted question is "no", I cannot set the MinifyAll extension to auto upload a saved/minified file to the server, Correct?

No, MinifyAll just minifies the code. If you want to upload it, then you will have to do so manually or automate a task.

dougkozar commented 3 years ago

Thanks. Is "automating tasks" something easy to learn and do within VS Code?

Josee9988 commented 3 years ago

Not a VSCode related thing. You may do a shell script and upload the files to your server using scp