palantir/blueprint

[webpack-build-scripts] asset file name generator is missing query delimiter

Open

#5,296 创建于 2022年5月10日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
Domain: toolingP2Type: bughelp wanted

描述

Environment

  • Package version(s): @blueprintjs/webpack-build-scripts v3.2.1
  • Browser: Chrome

Actual behavior

When using webpack-build-scripts' base config outside this repo, asset files like SVGs are being generated in the bundle with paths like assets/logo-black.svgccef1ff6a39afed7ae4a, which prevent browsers like Chrome from interpreting them according to their file extension.

Expected behavior

The file extension should be preserved in these webpack asset URLs

Possible solution

Add a ? in the file name generator

贡献者指南