tFileName&quot;: <strong>&quot;wwwroot/js/views/tasks/index.min.js</strong>&quot;,
  &quot;inputFiles&quot;: [
    <strong>&quot;wwwroot/js/views/tasks/index.js</strong>&quot;
  ]
}</pre>

<p>And creates a minified version of the script:</p>

<p><img alt="Minified js file" height="167" src="minified-js.png" width="215" /></p>

<p>Whenever I change the index.js, index.min.js is automatically re-generated. Now, I can include the JavaScript file into my page:</p>

<pre lang="xml">
@section scripts
{
    &lt;en