Skip to content

Commit d52a4dd

Browse files
authored
Add development section to explain working with assets
1 parent 8e2a323 commit d52a4dd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ If you don't have the Symfony client installed, run `php bin/console server:run`
4242
Alternatively, you can [configure a web server][3] like Nginx or Apache to run
4343
the application.
4444

45+
Development
46+
-----------
47+
48+
This project uses Yarn package manager for managing JavaScript dependencies along
49+
with [Webpack Encore][5] library that helps working with CSS and JavaScript files
50+
that are stored in `assets/` directory . Every time you make any change in those
51+
files - you will need to rebuild assets. For this, just execute:
52+
53+
```bash
54+
$ yarn install
55+
$ yarn build
56+
```
57+
58+
During the development, instead of `yarn build` you may want to run `yarn watch` which
59+
will watch for any changes in `assets/` and rebuild assets for you automatically.
60+
4561
Tests
4662
-----
4763

@@ -56,3 +72,4 @@ $ ./bin/phpunit
5672
[2]: https://symfony.com/doc/current/reference/requirements.html
5773
[3]: https://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
5874
[4]: https://symfony.com/download
75+
[5]: https://github.com/symfony/webpack-encore

0 commit comments

Comments
 (0)