I have a simple bat which merges my .js files into one single file.
I’d like to execute it every time I save anything in webstorm..
Can this be done?
I have a simple bat which merges my .js files into one single file.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not possible as WebStorm saves all the files automatically when needed, there is no trigger to be called on individual file save.
As a workaround you can create a macro that will save all the files and run the external tool, then bind this macro to default Save All shortcut. Now when you save the files via hotkey, IDE will also run your batch script.
Another possible solution would be to use some external service that will watch specified files for changes and run an external tool when they change.