Skip to content

Working with Frontend Assets

Shen Yang edited this page Oct 8, 2022 · 8 revisions

In modern js development, all of the javascript is loaded on all of the pages. This is so the client can use a cached version every page load after the first one.

To compile javascript once, run yarn build
If you are editing javascript run yarn build:dev. This will compile your javascript every time you edit a js file.

Similarly
To compile css once, run yarn build:css
If you are editing javascript run yarn build:css:dev. This will compile your css every time you edit a js file.

Clone this wiki locally