Tuesday, 9 July 2019

Alternative to loader's this._compilation

The docs say accessing this._compilation is hacky and it is even deprecated. I need it to access the output filename in particular:

this._compilation.outputOptions.filename

context._compilation.outputOptions.filename

What would be a future proof way of accessing it?



from Alternative to loader's this._compilation

No comments:

Post a Comment