Skip to content

Commit

Permalink
Fix dev server after html-webpack-plugin bump
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Jun 18, 2020
1 parent 5609c9a commit 9086e87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .electron-vue/dev-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const chalk = require('chalk')
const electron = require('electron')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const { say } = require('cfonts')
const { spawn } = require('child_process')
Expand Down Expand Up @@ -49,7 +50,7 @@ function startRenderer () {
})

compiler.hooks.compilation.tap('compilation', compilation => {
compilation.hooks.htmlWebpackPluginAfterEmit.tapAsync('html-webpack-plugin-after-emit', (data, cb) => {
HtmlWebpackPlugin.getHooks(compilation).afterEmit.tapAsync('html-webpack-plugin-after-emit', (data, cb) => {
hotMiddleware.publish({ action: 'reload' })
cb()
})
Expand Down Expand Up @@ -127,7 +128,7 @@ function startElectron () {
}

electronProcess = spawn(electron, args)

electronProcess.stdout.on('data', data => {
electronLog(data, 'blue')
})
Expand Down

0 comments on commit 9086e87

Please sign in to comment.