We use symfony Webpack Encore to manage our assets. See the symfony documentation for more information about encore.
First install all necessary dependencies by executing the following command in the root dir.
yarn
To develop asset changes locally you can run
./node_modules/.bin/encore dev
Or this command to watch the asset files for changes
./node_modules/.bin/encore dev --watch
When you are done with changes in the assets files, simply run in production mode and commit these generated files.
./node_modules/.bin/encore production