Asset Pipeline#
Static files are managed via webpack and django-webpack-loader.
There are a few make targets to aid asset compilation:
Target |
Description |
---|---|
static |
Compile and minify all static assets. (Use this for production.) |
static.dev |
Compile all static assets, but do NOT minify. |
static.watch |
Same as static.dev, but assets are compiled whenever a source file changes. |
When adding new modules/pages that require custom CSS or JavaScript, remember to add a new entrypoint to
webpack.config.js
.