Webpack Encore setup Symfony 5 Part 1 | Managing CSS and JavaScript | Entrypoints | Assets managment

Опубликовано: 11 Март 2026
на канале: Gagan Vaid
3,558
42

786=My lucky number
-----
From this video you will learn about
Webpack Encore
Managing CSS and JavaScript in Symfony 5
Common CSS and JS in files in Symfony 5
Entry points (Page specific CSS and JS)
-----------
Official Symfony webpack encore documentation: https://symfony.com/doc/current/front...
-----------
Install Encore:
`composer require symfony/webpack-encore-bundle`
`npm install @symfony/webpack-encore --save-dev`

Compile assets and make build:
`npm run watch`

--------
Timecodes
0:00 Intro
0:26 Installation of Webpack Encore
1:15 Common CSS and JS management
2:41 Compile CSS and JS and make build using command
3:11 Meaning of "watch" in compile assets command
3:37 Apply and run common CSS and JS in project
4:56 Page specific CSS and JS
6:43 Register entry point in webpack.config.js file
7:47 Call page specific entrypoints in twig file
10:25 About the next video on other modules of webpack
10:33 Please Like, Share and Subscribe
Thanks