与here报告的问题类似:当我使用require.ensure时,如何将查询字符串附加到块文件请求中?但是,如果我必须发送一些只有在调用require.ensure时才知道的自定义参数,该怎么办呢?例如,在服务器端授权用户对给定块的HTTP GET请求的标识密钥?
require.ensure
db2dz4w81#
https://github.com/webpack/webpack/issues/11816#issuecomment-716402552
declare var __webpack_get_script_filename__: any; const oldFn = __webpack_get_script_filename__; __webpack_get_script_filename__ = (chunkId) => { const filename = oldFn(chunkId); return filename + `?v=${environment.timestamp}`; };
字符串去享受吧,你爱我吗?
1条答案
按热度按时间db2dz4w81#
https://github.com/webpack/webpack/issues/11816#issuecomment-716402552
字符串
去享受吧,你爱我吗?