title: Symfony 4 : JS and CSS compiled with Webpack return 404
body: <p>I'm building a project with Symfony4 and VueJs, hosted by nginx server and run with Docker. My templates are OK but css and js files are in 404.</p>
  
  <p>Here's my nginx configuration :</p>
  
  <pre><code>server {
      listen 80;
      listen [::]:80;
      server_name symfony.local;
      root /var/www/myproject/public;
  
      location / {
          try_files $uri /index.php$is_args$args;
      }
  
      location ~ ^/(index)\.php(/|$) {
          fastcgi_pass php:9000;
          fastcgi_split_path_info ^(.+\.php)(/.*)$;
          include fastcgi_params;
  
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_param HTTPS off;
  
          internal;
      }
  
      location ~ \.php$ {
          return 404;
      }
  
     error_log /var/log/nginx/symfony_error.log;
     access_log /var/log/nginx/symfony_access.log;
  }
  </code></pre>
  
  <p>I configured my webpack file : </p>
  
  <pre><code>var Encore = require('@symfony/webpack-encore');
  Encore
    .setOutputPath('public/build/')
    .setPublicPath('/build')
    .cleanupOutputBeforeBuild()
    .enableSourceMaps(!Encore.isProduction())
    .addEntry('app', './assets/js/app.js')
    .enableBuildNotifications()
    .enableSassLoader()
    .enableVueLoader();
  ;
  
  module.exports = Encore.getWebpackConfig();
  </code></pre>
  
  <p>Css and JS files are in directory <code>assets\js\*</code> and <code>assets\css\*</code> and when i compile with <code>yarn encore dev</code> my builded files are in <code>public\build\app.js</code> and <code>public\build\app.css</code>
  In template base.html.twig :</p>
  
  <pre><code>{% block stylesheets %}
    {{ encore_entry_link_tags('app') }}
   {% endblock %}
  </code></pre>
  
  <p>And</p>
  
  <pre><code>{% block javascripts %}
    {{ encore_entry_script_tags('app') }}
  {% endblock %}
  </code></pre>
  
  <p>Files are compiled as well but I have error 404 for app.js and app.css.
  I've made like it's explained in <a href="https://symfony.com/doc/current/frontend.html" rel="nofollow noreferrer">https://symfony.com/doc/current/frontend.html</a>
  So i don't understand what is missing.</p>
  
  <p>Thank you :)</p>