npm.io
1.0.2 • Published 7 years ago

log-webpack-plugin

Licence
ISC
Version
1.0.2
Deps
0
Size
2 kB
Vulns
0
Weekly
0

end hook after webpack is done

install

npm i log-webpack-plugin --D

use

  const logWebpackPlugin = require('log-webpack-plugin') 

  module.exports = {
    plugins: [
      new logWebpackPlugin(() => {
        console.log('emit 事件发生啦,所有模块的转换和代码块对应的文件已经生成好~')
      } , () => {
        console.log('done 事件发生啦,成功构建完成~')
      })
    ]
  }