Skip to content

update to work with Webpack 5 - #152

Open
thjiang wants to merge 2 commits into
zouhir:masterfrom
LeMeridien:master
Open

update to work with Webpack 5#152
thjiang wants to merge 2 commits into
zouhir:masterfrom
LeMeridien:master

Conversation

@thjiang

@thjiang thjiang commented Feb 17, 2023

Copy link
Copy Markdown

compiler.plugin and compiler.apply was removed from webpack 5
replaced with compiler.hooks

Comment thread src/server/index.js
}

compiler.plugin("watch-run", (c, done) => {
compiler.hooks.watchRun.tap("Jarvis", (c, done) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should leave 'done' and 'done()' (in the next) in webpack5

compiler.hooks.watchRun.tap("Jarvis", (c) => {

image

Comment thread src/server/index.js

// extract the final reports from the stats!
compiler.plugin("done", stats => {
compiler.hooks.run.tap("Jarvis", stats => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be
compiler.hooks.done.tap("Jarvis"

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

Successfully merging this pull request may close these issues.

2 participants