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
Feature: Loaders API: add method to get outputOptions #8535
Comments
You can visit |
The
As "formatted" I mean options from compiler after init. Sorry for the wrong explanation.
I sent pr for webpack/loader-utils (webpack/loader-utils#120). As you can see there, I using option from |
@mc-zone we need api for this because in future it can be changes, using |
@evilebottnawi Oh yes. These But AFAIK, It might frequently be used. should we make it public? |
@mc-zone If that we can create method I can work on it if possible. |
Exposing |
So: Use |
@sokra we need this in |
@sokra what about making |
/cc @aarefiev friendly ping, we can implement |
@evilebottnawi thanks |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Bump |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Bump |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
Feature request
What is the expected behavior?
I would be nice to have ability to get formatted outputOptions like
this._compilation.outputOptions
but without using structure hacking.What is motivation or use case for adding/changing the behavior?
I found that some of output options not working as I expected. Some days ago I configured webpack based project with
output.hashDigestLength
option. But when I set it, only bundled files and files processed by plug-ins are ha truncated names as I expected, but files that processed by loaders only are not.I did not understand what was wrong, because the documentation says
According to documentation all plug-ins has access to outputOptions through Hooks API. But loaders are not. I think it is not good 👎
How should this be implemented in your opinion?
I think in Loaders API should be a method to get formatted outputOptions.
Are you willing to work on this yourself?
yes, sure
The text was updated successfully, but these errors were encountered: