1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 07:11:47 +09:00
This commit is contained in:
syuilo 2018-02-25 15:50:25 +09:00
parent 841606536b
commit a79e2cbaba

View File

@ -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': {