-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change output filename of runtime chunk? #5358
Comments
This is probably a bad default name, we should replace the |
Mm ok, just found it here if there is anyone with the same situation. I assume that without ejecting, I can do nothing here? |
If your app isn't embedded in a larger app, you shouldn't need this file for your app to function. Just delete it. 😄 |
I would have to delete all the references from the build folder. |
I think we should replace it with @Timer we are embedded 😢 |
Having the same issue. Who came up with putting ~ in the file name 😮 Filenames should only contain 1 and 0 😛 |
+1 for changing the ~ to something else. . -_ would all be better options. |
This is not something we're doing in our webpack config. These are the default names that webpack uses for chunks. I'm not sure that we can easily change them. You might want to file an issue with webpack and then link to it here. |
I've attached links to files where the problem is in the webpack configuration |
My company has a firewall rule that rejects any url with ~ in it. I need this fix (would not want to eject) for this issue. Per Webpack #runtimeChunk documentation the config change is easily done as noted by op. PR provided #7679 If this fix is already provided elsewhere I will gladly close. |
currently the output is runtime~xxx.[hash].js
How do I change that? I can't make it work on cloudfront to serve files with ~ in the filename...
Example:
S3: https://s3.eu-central-1.amazonaws.com/timesheet-app.topmonks.com/static/js/runtime~main.229c360f.js Works
CF: https://timesheet-app.topmonks.com/static/js/runtime~main.229c360f.js doesn't work
Thanks a lot
Edit:
Proposed changes:
webpack.prod InlineChunkHtmlPlugin
webpack.prod runtimeChunk
Edit: seems like the cloudfront link somehow works now, anyway I would perform the change anyway as imo ~ is not the best idea for file naming.
The text was updated successfully, but these errors were encountered: