Using environment variables / parameterizing config.xml : <p>I am building an ionic/cordova project using the cordova-plugin-facebook4 plugin for Facebook authentication access. In <code>config.xml</code> this looks like:</p>

<pre><code>&lt;plugin name="cordova-plugin-facebook4" spec="~1.7.1"&gt;
  &lt;variable name="APP_ID" value="1234567890123456"/&gt;
  &lt;variable name="APP_NAME" value="My_Appy_App"/&gt;
&lt;/plugin&gt;
</code></pre>

<p>This works okay, but the <code>APP_ID</code> we are using is for the dev app and we have a separate facebook app for other environments such as QA.</p>

<p>Is there any way to parameterize these variables in <code>config.xml</code> and have them be replaced as part of a build step? Something like:</p>

<pre><code>&lt;plugin name="foo" spec="~0.0.0"&gt;
  &lt;variable name="bar" value="${env.APP_ID}"/&gt;
&lt;/plugin&gt;
</code></pre>

<p>... and then run <code>APP_ID=baz ionic build android</code> or something like that.</p>

<p>I don't see anything in the cordova documentation that allows you to do this.</p>
