title: Include static JS files into Symfony without compiling
body: <p>I am migrating a website from plain PHP to Symfony 4, with a few of its JS files that I'm trying to include into Twig.</p>
  
  <p>In symfony docs, it is recommended to use Webpack or Assetic. But when I use those libraries, there are some bugs in the render concerning javacript.</p>
  
  <p>So I'd like to migrate my plain static JS files into Symfony without passing by any compiler or module, like that :</p>
  
  <pre><code>&lt;script src="{{ asset('build/js/scripts.min.js') }}"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But this way, there is still an issue with javascript.
  When I'm looking in the source code (<em>view-source:<a href="http://localhost:8000/build/js/scripts.min.js" rel="nofollow noreferrer">http://localhost:8000/build/js/scripts.min.js</a></em>), the file is starting like this :</p>
  
  <pre><code>‹���������������HTTP/1.1 200 OK
  Host: localhost:8000
  Date: Thu, 07 Jun 2018 09:46:54 +0000
  Connection: close
  Content-Type: application/javascript
  Content-Length: 32861
  
  var mr=function(a,b,c){  ... // the rest of js code
  </code></pre>
  
  <p>All my JS files are in <em>public/build/js</em> directory.</p>
  
  <p>Is there something I'm missing with the inclusion of static JS files in Symfony ?</p>