Search code examples
webpackassetsloader

webpack | what does [query] mean in assetModuleFilename: 'images/[hash][ext][query]'?


enter image description here

https://webpack.js.org/guides/asset-modules/#custom-output-filename

I know [hash] stands for random number and alphabet, and [ext] stands for Filename Extension.

But I don't know what is [query] and the use of it.


Solution

  • Check the webpack docs

    https://webpack.js.org/configuration/output/

    Substitutions available on File-level:

    [query] Query with leading ?