summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-25 15:50:25 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-25 15:50:25 +0900
commita79e2cbabae3e36fef161d7a8accf13792c7d02b (patch)
tree36c09e14976239bebfea8b3af4bd7616c2930d68 /webpack
parentShow progress bar (diff)
downloadsharkey-a79e2cbabae3e36fef161d7a8accf13792c7d02b.tar.gz
sharkey-a79e2cbabae3e36fef161d7a8accf13792c7d02b.tar.bz2
sharkey-a79e2cbabae3e36fef161d7a8accf13792c7d02b.zip
:v:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/plugins/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts
index b2ecb5c608..b97cde231d 100644
--- a/webpack/plugins/index.ts
+++ b/webpack/plugins/index.ts
@@ -1,5 +1,6 @@
import * as webpack from 'webpack';
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
+import chalk from 'chalk';
import consts from './consts';
import hoist from './hoist';
@@ -10,7 +11,10 @@ const isProduction = env === 'production';
export default (version, lang) => {
const plugins = [
- new ProgressBarPlugin(),
+ new ProgressBarPlugin({
+ format: chalk` {cyan.bold yes we can} {bold [}:bar{bold ]} {green.bold :percent} {gray (:current/:total)} :elapseds`,
+ clear: false
+ }),
consts(lang),
new webpack.DefinePlugin({
'process.env': {