1.0.2 • Published 5 years ago

log-webpack-plugin v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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 事件发生啦,成功构建完成~')
      })
    ]
  }