Skip to content

Commit a9f496a

Browse files
committed
fix (theme): misnamed watchRun hook parameter
1 parent 5b202d3 commit a9f496a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/webpack-image-sizes-plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ class WebpackImageSizesPlugin {
144144
compiler.hooks.emit.tapAsync('WebpackImageSizesPlugin', runGeneration)
145145

146146
// Hook for rebuilds in watch mode
147-
compiler.hooks.watchRun.tapAsync('WebpackImageSizesPlugin', (compilation, callback) => {
147+
compiler.hooks.watchRun.tapAsync('WebpackImageSizesPlugin', (compiler, callback) => {
148148
this.log('log', '👀 Watch mode: checking for conf-img changes...')
149-
runGeneration(compilation, callback)
149+
runGeneration(compiler, callback)
150150
})
151151

152-
// Add directories to watch
152+
// Add directories to wat
153153
compiler.hooks.compilation.tap('WebpackImageSizesPlugin', (compilation) => {
154154
// Watch configuration directories
155155
if (fs.existsSync(sizesPath)) {

0 commit comments

Comments
 (0)