Open sunft1996 opened 1 year ago
Worked for me - thanks! In case this repo is still maintained, this should definitely be merged. @stephencookdev
Why don't you merge it? @stephencookdev
@stephencookdev merge please
For those who can't run the plugin on the 5th webpack:
webpack5
branchnpm ci
in the directory to get the dependencies (install nodejs of needed version if you don't have one or fix the .nvmrc
)npm i --save-dev <path_to>/speed-measure-webpack-plugin-source-read
commandFor example, in my case, it was the npm i --save-dev ../speed-measure-webpack-plugin-source-read
because it was an adjacent directory.
After that you will be able to run the plugin even with the webpack@5
FYI @tanchu
@sunft1996 Great effort, man. You helped a lot.
@sharikovvladislav Thanx!
@sunft1996 can you use npx publish-to-git
to publish a version to your repo? Then we will be able to install as such https://www.npmjs.com/package/publish-to-git#consumption-of-private-git-npm-packages
Supports webpack5 and mini-css-extract-plugin, with the following 3 changes:
tap/tapAsync/tapPromise
function, as mini-css-extract-plugin will use thecompilation
parameter passed to the tap function(code here), but it will get the proxy object instead of itself, which causes some bugs.compiler
for a similar reason as the first one, as some plugins require the original method, such asmini-css-extract-plugin
, which usescompile.webpack
as the cache. code herenormal-module-loader
hook, although it can still be used now, it will be removed in the future.I ran through all the test cases and it seems to be okay. I hope it helps :)