You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly thanks to the Shakacode team, we are using this project with great success in our app. It's really great that you can take advantage of the Rails webpacker integration while still being able to traditionally configure webpack.
I am in the process of upgrading webpack to v4 and I ran into an issue when dealing with the new chunk system. I have 3 entrypoints in my app.
I have configured it like this:
Now my problem is that as I change the code, I don't know which chunks to include in which layout in Rails - this may change.
So my question is, is there any way to generate a json or similar from the webpack output with the list of files in each entrypoint so that I could use it in Rails by iterating through and dynamically adding javascript_pack_tags for each of them?
The text was updated successfully, but these errors were encountered:
Firstly thanks to the Shakacode team, we are using this project with great success in our app. It's really great that you can take advantage of the Rails webpacker integration while still being able to traditionally configure webpack.
I am in the process of upgrading webpack to v4 and I ran into an issue when dealing with the new chunk system. I have 3 entrypoints in my app.
I have configured it like this:
It splits the code quite nicely taking out common chunks and vendor files, but it generates in this fashion:
Now my problem is that as I change the code, I don't know which chunks to include in which layout in Rails - this may change.
So my question is, is there any way to generate a json or similar from the webpack output with the list of files in each entrypoint so that I could use it in Rails by iterating through and dynamically adding javascript_pack_tags for each of them?
The text was updated successfully, but these errors were encountered: