Сервисный работник Symfony Webpack Encore
<script>
var swPath = "{{ encore_entry_js_files('sw') | first }}";
</script>
Attractive Armadillo
<script>
var swPath = "{{ encore_entry_js_files('sw') | first }}";
</script>