Category: webpack-encore

Symfony’s webpack include built files in template without any php in project

In project i am using Symfony’s Webpack Encore and i am following this instructions. Now i want include files from /public/build. So add links to index.html on final javascript and css files. But i want enableVersioning() too whitch means every…

Assets are loaded from hashed path instead of its corresponding from manifest.json

I’ve enabled file versioning and configured to export everything from the /assets/images path to /public/build/images and all files have their own hashes.In theory, manifest.json is built and using twig’s asset function the given file must be read with its non-hashed…

Symfony 4 – Webpack-encore use FosJsRouting : Routing is not defined

I try to use FosJsRouting with Webpack-encore in my Symfony 4 project. I did : 1. composer require friendsofsymfony/jsrouting-bundle 2. php bin/console assets:install –symlink public 3. php bin/console fos:js-routing:dump –format=json –target=public/js/fos_js_routes.json And in my app.js : // FosJsRouting const routes…

Stylelint output does not show the name of the file where warnings occur

When running stylelint the output of warnings does not show the name of the file where the error occurs (with errors it does work fine). My files look like this: app.scss @import ‘./_file-with-error’; _file-with-error.scss html body { color: red; }…