You are browsing the Symfony 4 documentation, which changes significantly from Symfony 3.x. If your app doesn't use Symfony 4 yet, browse the Symfony 3.4 documentation.
Installing Encore (with Symfony Flex)
Installing Encore (with Symfony Flex)¶
If your project does not use Symfony Flex, read Encore Installation (without Symfony Flex).
$ composer require webpack-encore $ yarn install
This will create a
webpack.config.js file, add the
assets/ directory, and
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.