How to add command line arguments to 'react-native start' command in WebStorm?

Hi.
I am completely new to WebStorm

 

I am using the IDE to develop react-native apps.

So when I click on run project, the 'react-native start' and 'react-native run-android' commands are executed by default.

 

What I want to achieve is to put a command line argument in 'react-native start' command which is '--reset-cache'. So the whole command should look like 'react-native start --reset-cache'

Here is the screenshot

 

What I am doing currently is opening 2 terminals in the IDE and then writing the commands.

Please help!

Thank you

0
4 comments

There is 'Run arguments` field in React Native run configuration (https://www.jetbrains.com/help/webstorm/2017.1/run-debug-configuration-react-native.html#d99346e27) - did you try it?

0
Avatar
Permanently deleted user

Yes I have, unfortunately it applies to 'react-native run-android' command and not 'react-native start' command.

0

Sorry, my mistake, didn't read your comment carefully enough:( Not possible currently, please vote for https://youtrack.jetbrains.com/issue/WEB-25156

0
Avatar
Permanently deleted user

Done. Thank you for the support :) Have a nice day

 

0

Please sign in to leave a comment.