How to change output filename of runtime chunk?
See original GitHub issuecurrently 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
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/])
runtimeChunk: {
name: entrypoint => `runtime-${entrypoint.name}`,
},
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
webpack - output.filename impacted by output.chunkFilename?
chunkFilename setting. So having these rules: optimization: { runtimeChunk: 'single', }, output: { path: outDir, filename: '[name]Ā ...
Read more >Output - webpack
This option determines the name of non-initial chunk files. See output.filename option for details on the possible values. Note that these filenames need...
Read more >Output - webpack 3 documentation
This option determines the name of non-entry chunk files. See output.filename option for details on the possible values. Note that these filenames need...
Read more >What is Output ā Webpack 5 - DEV Community ā ā
module.exports = { output: { path: path.resolve(__dirname, "dist"), filename: ... the bundle when placeholder value for any chunk changes.
Read more >Adding Hashes to Filenames - SurviveJS
const config = { output: { path: PATHS.build, filename: "[name]. ... If the file contents related to a chunk are different, the hash...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is probably a bad default name, we should replace the
~
with something else.I think we should replace it with
-
instead of~
.@Timer we are embedded š¢