-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Hello everyone,
I recently upgraded my Rails app to Webpacker 4, following the docs. After a while (damn' you Babel...) everything seems working on my development environment. But for some reason on test environment, I got an issue with manifest.json not including my images (as it does for development).
I tried this and this but without any success 😞
I tried to figure what could be the differences between both environments, but nothing that could lead to that problem, I guess.
For your information I'm using a dockerized Rails application, with Webpacker on his own container for development mode, and everything on the same container (Webpacker and Rails) on test and production.
[EDIT]
Sorry I was not sure about what informations you would need... Here are what has been asked, with apologies:
- Here is a quick view of my file system:
app
|- controllers
|- helpers
|- ...
|- models
|- views
|- webpacker (instead of)
| |- fonts
| |- images
| |- js
| | |- packs
| |- sass
- JS files are included quite "traditionally", using packs and
javascript_pack_taghelpers in views.
CSS unique file is imported through thestylesheet_pack_taghelper. Fonts are imported directly in my SASS main file (using@font-face). Images are also used in SASS files, but most of the time usingimage_pack_taghelpers in views.
3 & 4. Here are some gists, as asked:
- Docker Compose files (test and development env.): https://gist.github.com/soykje/5fd0a95d79bae0b0291f2f1fce1db12c
- manifest.json files (test and development env.): https://gist.github.com/soykje/8a5bd94708a7f53cc4671780ede981ee
- package.json: https://gist.github.com/soykje/106af2031e794105714a492fde4b52c2
- babel.config.js: https://gist.github.com/soykje/b59f1fbe900a7bf4b926e58f4765c0be
- config/webpack/environment.js and config/webpacker.yml: https://gist.github.com/soykje/ec1255e0dbdc68e87a5eaf9728509892
- app/javascript/packs/application.js (in my case app/webpacker/js/packs/application.js): https://gist.github.com/soykje/991c39aec7c0f281d5977dfd00e94a70