Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/webpack-image-sizes-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ class WebpackImageSizesPlugin {
compiler.hooks.emit.tapAsync('WebpackImageSizesPlugin', runGeneration)

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

// Add directories to watch
// Add directories to wat
compiler.hooks.compilation.tap('WebpackImageSizesPlugin', (compilation) => {
// Watch configuration directories
if (fs.existsSync(sizesPath)) {
Expand Down
Loading