diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-03-06 09:26:22 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-03-06 09:26:22 +0900 |
| commit | ce02e1e5281341be61cd21b6205f7da34a366feb (patch) | |
| tree | 99e86361f1bb5609ae7b7f21a6cac6e2900d9e86 /webpack.config.ts | |
| parent | Fix #4421 (diff) | |
| download | sharkey-ce02e1e5281341be61cd21b6205f7da34a366feb.tar.gz sharkey-ce02e1e5281341be61cd21b6205f7da34a366feb.tar.bz2 sharkey-ce02e1e5281341be61cd21b6205f7da34a366feb.zip | |
Bye on-build-webpack (#4404)
* Update webpack.config.ts
* Update package.json
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webpack.config.ts b/webpack.config.ts index 4cf30b268e..e1d7ad1afc 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -6,11 +6,19 @@ import * as fs from 'fs'; import * as webpack from 'webpack'; import chalk from 'chalk'; const { VueLoaderPlugin } = require('vue-loader'); -const WebpackOnBuildPlugin = require('on-build-webpack'); //const HardSourceWebpackPlugin = require('hard-source-webpack-plugin'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); +class WebpackOnBuildPlugin { + constructor(readonly callback: (stats: any) => void) { + } + + public apply(compiler: any) { + compiler.hooks.done.tap('WebpackOnBuildPlugin', this.callback); + } +} + const isProduction = process.env.NODE_ENV == 'production'; const constants = require('./src/const.json'); |