Automatically deploy minified file when uploading unminified file
I have come to now figure out how to set up automatically uploading a file when I save it, however, it's only pushing up my .css or .js file and not the minified file associated with it.
Is there a way to have deployment push up the .css file and it's minified version as well, or would I have to turn to grunt/gulp task to handle that instead?
Please sign in to leave a comment.
Do you have "Upload external changes" ticked in File | Settings | Build, Execution, Deployment | Deployment | Options?
I had no idea that's what that was doing. I thought "External Changes" would reference other files unassociated. This works great! Thank you!
Is there a way to do this without making the application poll all project files? perhaps I can hook into the minification script to upload on completion?
> perhaps I can hook into the minification script to upload on completion?
Yes, you can do that. You can make your own batch/shell/task/whatever-else script that will do all what is needed (compilation/minification/gluening/uploading/etc) and use it in File Watcher.