Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit c20a18a

Browse files
committed
fix: use 'webpack.ProgressPlugin().apply()'
Call 'new webpack.ProgressPlugin().apply()' to resolve deprecation warning When logging through and checking what was causing issue #83, I saw the depreciation warning below, this changes resolves this warning; 'DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead'
1 parent b309a36 commit c20a18a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

scripts/index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ fs.emptyDir(paths.appBuild)
114114

115115
return new Promise((resolve, reject) => {
116116
const webpackCompiler = webpack(config);
117-
webpackCompiler.apply(
118-
new webpack.ProgressPlugin(() => {
119-
if (!inProgress) {
120-
spinner.start('Start webpack watch');
121-
inProgress = true;
122-
}
123-
})
124-
);
117+
new webpack.ProgressPlugin(() => {
118+
if (!inProgress) {
119+
spinner.start('Start webpack watch');
120+
inProgress = true;
121+
}
122+
}).apply(webpackCompiler);
125123

126124
webpackCompiler.watch({}, (err, stats) => {
127125
if (err) {

0 commit comments

Comments
 (0)