Auto-Upload only minified JS-Files
Hi community,
I'm using the File-Watcher for minifiing JS files. My problem is, that on automatic upload by phpStorm (v. 2017.2), both JS files (script.js and script.min.js)
are uploaded to the remote server.
So, is it possible to upload only the generated minified version of the JS-file (*.min.js) via ftp or sftp and exclude the unminified JS (*.js) source file?
Thanks in advance.
Please sign in to leave a comment.
Not possible currently, please vote: https://youtrack.jetbrains.com/issue/WI-37165
A possible workaround may be excluding files from uploading in the deployment configuration, but reliability of this methods heavily depends on your project structure and files naming convention.
Use Gulp.js for your deployment tasks.
you can use many plugins or native javascript and nodejs for all your tasks.