Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant