diff --git a/package.json b/package.json index d3ceec1..944e252 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", - "preinstall": "bash ./scripts/init_files.sh", "dev": "cross-env BABEL_ENV=development ./node_modules/.bin/webpack-dev-server --progress --devtool eval-source-map --config build/webpack.dev.conf.js", "start": "yarn lint && yarn dll && yarn dev", "del:dll": "./node_modules/.bin/rimraf vendor", @@ -54,6 +53,7 @@ "css-minimizer-webpack-plugin": "^1.0.0", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", + "progress-bar-webpack-plugin": "^2.1.0", "uglifyjs-webpack-plugin": "^2.2.0", "vue-template-compiler": "^2.6.11", "webpack-bundle-analyzer": "^4.4.2" diff --git a/src/components/mouseHover.html "b/src/PlanADDFunction/\351\274\240\346\240\207\346\202\254\346\265\256\346\267\273\345\212\240\345\233\276\346\240\207.html" similarity index 100% rename from src/components/mouseHover.html rename to "src/PlanADDFunction/\351\274\240\346\240\207\346\202\254\346\265\256\346\267\273\345\212\240\345\233\276\346\240\207.html" diff --git a/vue.config.js b/vue.config.js index a4da995..1889418 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,14 +7,17 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); const CompressionWebpackPlugin = require('compression-webpack-plugin'); +const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const productionGzipExtensions = ['js', 'css', 'html'] module.exports = { publicPath: './', outputDir: 'dist', lintOnSave: true, + quite: true, configureWebpack: { plugins: [ + new ProgressBarPlugin(), new BundleAnalyzerPlugin(), new CompressionWebpackPlugin({ filename: '[path].gz[query]', diff --git a/yarn.lock b/yarn.lock index 5d365a5..a128b7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chalk@^3.0.0: + version "3.0.0" + 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" + integrity sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ= + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^4.0.0, chalk@^4.1.0: version "4.1.0" resolved "https://registry.npm.taobao.org/chalk/download/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" @@ -2525,6 +2533,17 @@ compressible@~2.0.16: dependencies: mime-db ">= 1.43.0 < 2" +compression-webpack-plugin@^5.0.1: + version "5.0.2" + 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" + integrity sha1-34Tmgs+h+yojDnHPg9UMMj1TacI= + dependencies: + cacache "^15.0.5" + find-cache-dir "^3.3.1" + schema-utils "^2.7.0" + serialize-javascript "^4.0.0" + webpack-sources "^1.4.3" + compression@^1.7.4: version "1.7.4" 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: schema-utils "^2.7.0" semver "^6.3.0" -css-minimizer-webpack-plugin@1.x: +css-minimizer-webpack-plugin@^1.0.0: version "1.3.0" 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" integrity sha1-2Ge0pUypkgElswJjUF6MynK8jPE= @@ -6649,7 +6668,15 @@ process@^0.11.10: resolved "https://registry.npm.taobao.org/process/download/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= -progress@^2.0.0: +progress-bar-webpack-plugin@^2.1.0: + version "2.1.0" + resolved "https://registry.nlark.com/progress-bar-webpack-plugin/download/progress-bar-webpack-plugin-2.1.0.tgz#f7f8c8c461f40b87a8ff168443f494289b07ee65" + integrity sha1-9/jIxGH0C4eo/xaEQ/SUKJsH7mU= + dependencies: + chalk "^3.0.0" + progress "^2.0.3" + +progress@^2.0.0, progress@^2.0.3: version "2.0.3" 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" integrity sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=