palantir/blueprint

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

Open

#5296 opened on May 10, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: toolingP2Type: bughelp wanted

Description

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

Contributor guide