Phoenix can compile static assets incorrectly in dev environment
- Dominant language
- No language data
- Stars
- 664
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
When compiling static assets in a Phoenix application in dev the static assets can be compiled in a different order to your brunch config (the order for your local assets) (the static assets seem to be compiled in an alphabetical order).
This can lead to css overwriting other css and so a different dev site.
Phoenix sadly won't read the brunch ordering of files and it doesn't seem configurable 😢
One way to get around this is to ensure that the order for brunch compilation is in alphabetical order:
```elixir
before: [
"web/static/css/app.css",
"web/static/tachyons-word-break.min.css",
"web/static/tachyons.min.css"
] // concat app.css last
```
It would be good to know if other people have found this problem and if there are better ways around this
Contributor guide
Assessment
This issue has not been assessed yet.