Skip to content

hardboiled65/warning-image-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

warning-image-webpack-plugin

Installation

$ npm install warning-image-webpack-plugin --save-dev

Usage

Images should be 16x16 sized .png file.

When image not specified, using default image.

Message can be omitted (no messages will printed).

const path = require('path')
const WarningImageWebpackPlugin = require('warning-image-webpack-plugin')

module.exports = {
  plugins: [
    new WarningImageWebpackPlugin({
      doneImage: path.resolve(__dirname, 'done.png'),
      failImage: path.resolve(__dirname, 'fail.png'),
      doneMessage: [
        '',
        '',
        '   Congratulations!',
        '',
        ' Build success.',
        '',
        '',
        ''
      ],
      failMessage: [
        '',
        '',
        ' Build failed!',
        '',
        '',
        '',
        '',
        ''
      ]
    })
  ]
}

done

fail

License

Please DO NOT use this useless code blob in open source project. Just using only at your work for showing to your boss.

오픈소스 프로젝트에 이 쓸모없는 코드 쓰레기를 추가하지 마세요. 직장에서 상사에게 보여주기 위한 전시성 목적으로만 사용하여 주세요.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published