Skip to content

Commit

Permalink
添加打包进度条
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jan 16, 2022
1 parent 9d0ff38 commit 6a364eb
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

[![Test](https://github.com/HCLonely/auto-task/workflows/Test/badge.svg)](https://github.com/HCLonely/auto-task-v4/actions/workflows/Test.yml)
[![OSSAR](https://github.com/HCLonely/auto-task/workflows/OSSAR/badge.svg)](https://github.com/HCLonely/auto-task-v4/actions/workflows/ossar-analysis.yml)
[![Doc Sync](https://github.com/HCLonely/auto-task-v4/actions/workflows/doc-sync.yml/badge.svg)](https://github.com/HCLonely/auto-task-v4/actions/workflows/doc-sync.yml)
[![Document](https://github.com/HCLonely/auto-task-v4/actions/workflows/doc-sync.yml/badge.svg)](https://github.com/HCLonely/auto-task-v4/actions/workflows/doc-sync.yml)
[![Release](https://github.com/HCLonely/auto-task-v4/actions/workflows/Release.yml/badge.svg)](https://github.com/HCLonely/auto-task-v4/actions/workflows/Release.yml)

[![License](https://img.shields.io/github/license/HCLonely/auto-task-v4?label=License)](https://github.com/HCLonely/auto-task-v4/blob/main/LICENSE)
[![Release](https://img.shields.io/github/v/release/HCLonely/auto-task-v4?include_prereleases)](https://github.com/HCLonely/auto-task-v4/releases)

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"typescript": "^4.4.4",
"uglify-js": "^3.14.5",
"webpack": "^5.60.0",
"webpack-cli": "^4.9.1"
"webpack-cli": "^4.9.1",
"webpackbar": "^5.0.2"
}
}
3 changes: 2 additions & 1 deletion page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"typescript": "^4.4.4",
"uglify-js": "^3.14.5",
"webpack": "^5.60.0",
"webpack-cli": "^4.9.1"
"webpack-cli": "^4.9.1",
"webpackbar": "^5.0.2"
}
}
37 changes: 37 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion webpack.compatibility.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
/*
* @Author : HCLonely
* @Date : 2021-12-12 17:39:48
* @LastEditTime : 2022-01-16 14:27:44
* @LastEditTime : 2022-01-16 19:54:04
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/webpack.compatibility.config.js
*/
const fs = require('fs');
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const { DefinePlugin } = require('webpack');
const WebpackBar = require('webpackbar');
const VERSION = JSON.parse(fs.readFileSync('package.json')).version;
const NAME = 'auto-task-v4.compatibility';

Expand Down Expand Up @@ -78,6 +79,7 @@ module.exports = {
]
},
plugins: [
new WebpackBar(),
new DefinePlugin({
__VERSION__: VERSION,
__NAME__: NAME,
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
/*
* @Author : HCLonely
* @Date : 2021-10-26 16:22:46
* @LastEditTime : 2022-01-16 14:27:48
* @LastEditTime : 2022-01-16 19:53:54
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/webpack.config.js
*/
const fs = require('fs');
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const { DefinePlugin } = require('webpack');
const WebpackBar = require('webpackbar');
const VERSION = JSON.parse(fs.readFileSync('package.json')).version;
const NAME = 'auto-task-v4';

Expand Down Expand Up @@ -83,6 +84,7 @@ module.exports = {
]
},
plugins: [
new WebpackBar(),
new DefinePlugin({
__VERSION__: VERSION,
__NAME__: NAME,
Expand Down
4 changes: 3 additions & 1 deletion webpack.giveawaysu.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
/*
* @Author : HCLonely
* @Date : 2021-10-26 16:22:46
* @LastEditTime : 2022-01-16 14:27:58
* @LastEditTime : 2022-01-16 19:53:59
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/webpack.giveawaysu.config.js
*/
const fs = require('fs');
const path = require('path');
const { DefinePlugin } = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const WebpackBar = require('webpackbar');
const VERSION = JSON.parse(fs.readFileSync('package.json')).version;
const NAME = 'auto-task-v4-for-giveawaysu';

Expand Down Expand Up @@ -78,6 +79,7 @@ module.exports = {
]
},
plugins: [
new WebpackBar(),
new DefinePlugin({
__VERSION__: VERSION,
__NAME__: NAME
Expand Down

1 comment on commit 6a364eb

@vercel
Copy link

@vercel vercel bot commented on 6a364eb Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.