Skip to content

Commit 4d0ad26

Browse files
新增待开发功能
1 parent 0f05687 commit 4d0ad26

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"serve": "vue-cli-service serve",
1111
"build": "vue-cli-service build",
1212
"lint": "vue-cli-service lint",
13-
"preinstall": "bash ./scripts/init_files.sh",
1413
"dev": "cross-env BABEL_ENV=development ./node_modules/.bin/webpack-dev-server --progress --devtool eval-source-map --config build/webpack.dev.conf.js",
1514
"start": "yarn lint && yarn dll && yarn dev",
1615
"del:dll": "./node_modules/.bin/rimraf vendor",
@@ -54,6 +53,7 @@
5453
"css-minimizer-webpack-plugin": "^1.0.0",
5554
"eslint": "^6.7.2",
5655
"eslint-plugin-vue": "^6.2.2",
56+
"progress-bar-webpack-plugin": "^2.1.0",
5757
"uglifyjs-webpack-plugin": "^2.2.0",
5858
"vue-template-compiler": "^2.6.11",
5959
"webpack-bundle-analyzer": "^4.4.2"
File renamed without changes.

Diff for: vue.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl
77
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
88
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
99
const CompressionWebpackPlugin = require('compression-webpack-plugin');
10+
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
1011
const productionGzipExtensions = ['js', 'css', 'html']
1112

1213
module.exports = {
1314
publicPath: './',
1415
outputDir: 'dist',
1516
lintOnSave: true,
17+
quite: true,
1618
configureWebpack: {
1719
plugins: [
20+
new ProgressBarPlugin(),
1821
new BundleAnalyzerPlugin(),
1922
new CompressionWebpackPlugin({
2023
filename: '[path].gz[query]',

Diff for: yarn.lock

+29-2
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,14 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4
22192219
escape-string-regexp "^1.0.5"
22202220
supports-color "^5.3.0"
22212221

2222+
chalk@^3.0.0:
2223+
version "3.0.0"
2224+
resolved "https://registry.nlark.com/chalk/download/chalk-3.0.0.tgz?cache=0&sync_timestamp=1627646697260&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
2225+
integrity sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ=
2226+
dependencies:
2227+
ansi-styles "^4.1.0"
2228+
supports-color "^7.1.0"
2229+
22222230
chalk@^4.0.0, chalk@^4.1.0:
22232231
version "4.1.0"
22242232
resolved "https://registry.npm.taobao.org/chalk/download/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a"
@@ -2525,6 +2533,17 @@ compressible@~2.0.16:
25252533
dependencies:
25262534
mime-db ">= 1.43.0 < 2"
25272535

2536+
compression-webpack-plugin@^5.0.1:
2537+
version "5.0.2"
2538+
resolved "https://registry.nlark.com/compression-webpack-plugin/download/compression-webpack-plugin-5.0.2.tgz?cache=0&sync_timestamp=1624626650884&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcompression-webpack-plugin%2Fdownload%2Fcompression-webpack-plugin-5.0.2.tgz#df84e682cfa1fb2a230e71cf83d50c323d5369c2"
2539+
integrity sha1-34Tmgs+h+yojDnHPg9UMMj1TacI=
2540+
dependencies:
2541+
cacache "^15.0.5"
2542+
find-cache-dir "^3.3.1"
2543+
schema-utils "^2.7.0"
2544+
serialize-javascript "^4.0.0"
2545+
webpack-sources "^1.4.3"
2546+
25282547
compression@^1.7.4:
25292548
version "1.7.4"
25302549
resolved "https://registry.npm.taobao.org/compression/download/compression-1.7.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcompression%2Fdownload%2Fcompression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
@@ -2788,7 +2807,7 @@ css-loader@^3.5.3:
27882807
schema-utils "^2.7.0"
27892808
semver "^6.3.0"
27902809

2791-
css-minimizer-webpack-plugin@1.x:
2810+
css-minimizer-webpack-plugin@^1.0.0:
27922811
version "1.3.0"
27932812
resolved "https://registry.nlark.com/css-minimizer-webpack-plugin/download/css-minimizer-webpack-plugin-1.3.0.tgz?cache=0&sync_timestamp=1624621647030&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcss-minimizer-webpack-plugin%2Fdownload%2Fcss-minimizer-webpack-plugin-1.3.0.tgz#d867b4a54ca9920125b30263505e8cca72bc8cf1"
27942813
integrity sha1-2Ge0pUypkgElswJjUF6MynK8jPE=
@@ -6649,7 +6668,15 @@ process@^0.11.10:
66496668
resolved "https://registry.npm.taobao.org/process/download/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
66506669
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
66516670

6652-
progress@^2.0.0:
6671+
progress-bar-webpack-plugin@^2.1.0:
6672+
version "2.1.0"
6673+
resolved "https://registry.nlark.com/progress-bar-webpack-plugin/download/progress-bar-webpack-plugin-2.1.0.tgz#f7f8c8c461f40b87a8ff168443f494289b07ee65"
6674+
integrity sha1-9/jIxGH0C4eo/xaEQ/SUKJsH7mU=
6675+
dependencies:
6676+
chalk "^3.0.0"
6677+
progress "^2.0.3"
6678+
6679+
progress@^2.0.0, progress@^2.0.3:
66536680
version "2.0.3"
66546681
resolved "https://registry.npm.taobao.org/progress/download/progress-2.0.3.tgz?cache=0&sync_timestamp=1599054255267&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fprogress%2Fdownload%2Fprogress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
66556682
integrity sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=

0 commit comments

Comments
 (0)