Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

output fileName query #82

Open
PengBoUESTC opened this issue Jan 13, 2022 · 0 comments
Open

output fileName query #82

PengBoUESTC opened this issue Jan 13, 2022 · 0 comments

Comments

@PengBoUESTC
Copy link

if we config webpack like this
config.output.filename(js/[name].js?${VERSION.commit}).end();,

webpack will cut off the query of the fileName, when write into the MemoryFileSystem instance.

const queryStringIdx = targetFile.indexOf("?"); if (queryStringIdx >= 0) { targetFile = targetFile.substr(0, queryStringIdx); }

but we will read the cache content with a query name, so that we can't read the correct file.

maybe we can cut off the query when read the fileContent from MemoryFileSystem instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant