From b53f15dcb23420be9b039173bf5fb3746e5c2fce Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 2 Apr 2024 11:24:51 +0800 Subject: [PATCH] update README.md --- README-en-US.md | 23 +++++++++++++-------- README.md | 24 +++++++++++++--------- vite.config.js | 54 ++++++++++++++++++++++++------------------------- 3 files changed, 57 insertions(+), 44 deletions(-) diff --git a/README-en-US.md b/README-en-US.md index 75eb6fd..c45a54d 100644 --- a/README-en-US.md +++ b/README-en-US.md @@ -41,16 +41,11 @@ Vercel: (This is recommended in China.) -## Run the project -This project is based on `Vue` and needs node environment to run. +## Related post +- juejin:https://juejin.cn/spost/7352813352051687458 +- V2Nex:https://www.v2ex.com/t/1028678#reply116 -1. To install NodeJS, refer to [official documentation] (https://nodejs.org/en/download)) -2. Use `git clone https://github.com/zyronon/douyin.git` to download the project locally. -3. Enter the project directory `npm install` and run `project install` under the project root directory to download the dependency. -4. Execute `project dev` to start the project. The default address of the project is [`http://localhost:3000`](http://localhost:3000)]. -5. Open [`http://localhost:3000`](http://localhost:3000)] in the browser to access the project. -Chrome switch to mobile phone mode shortcut key, press F12 to bring up the console, and then press Ctrl+Shift+M ## The online celebrities displayed by the project @@ -68,6 +63,18 @@ Chrome switch to mobile phone mode shortcut key, press F12 to bring up the conso - 彭十六elf: https://v.douyin.com/iYRAHrVG/ - 李子柒:https://v.douyin.com/iYRA5B88/ + +## Run the project + +This project is based on `Vue` and needs node environment to run. + +1. To install NodeJS, refer to [official documentation] (https://nodejs.org/en/download)) +2. Use `git clone https://github.com/zyronon/douyin.git` to download the project locally. +3. Enter the project directory `npm install` and run `project install` under the project root directory to download the dependency. +4. Execute `project dev` to start the project. The default address of the project is [`http://localhost:3000`](http://localhost:3000)]. +5. Open [`http://localhost:3000`](http://localhost:3000)] in the browser to access the project. +Chrome switch to mobile phone mode shortcut key, press F12 to bring up the console, and then press Ctrl+Shift+M + ## 🎙 Functions and suggestions At present, the project is in the early stage of development, and new features are being added continuously. If you have any functions and suggestions for the software, you are welcome to put forward them in Issues. diff --git a/README.md b/README.md index 79425bf..0676f8b 100644 --- a/README.md +++ b/README.md @@ -39,16 +39,10 @@ Netlify: (需要翻墙) -## 运行项目 +## 相关帖子 +- 掘金:https://juejin.cn/spost/7352813352051687458 +- V2Nex:https://www.v2ex.com/t/1028678#reply116 -本项目是基于`Vue`开发的,需要 node 环境来运行。 - -1. 安装 NodeJS,参考[官方文档](https://nodejs.org/en/download) -2. 使用 `git clone https://github.com/zyronon/douyin.git` 下载项目到本地 -3. 进入项目目录` cd douyin `,在项目根目录下,运行`npm install`来下载依赖。 -4. 执行`npm run dev`来启动项目,项目默认地址为[`http://localhost:3000`](http://localhost:3000) -5. 在浏览器中打开[`http://localhost:3000`](http://localhost:3000) 来访问项目。 - Chrome切换成手机模式快捷键,先按F12调出控制台,再按Ctrl+Shift+M ## 项目所展示的网红 @@ -66,6 +60,18 @@ Netlify: (需要翻墙) - 彭十六elf: https://v.douyin.com/iYRAHrVG/ - 李子柒:https://v.douyin.com/iYRA5B88/ + +## 运行项目 + +本项目是基于`Vue`开发的,需要 node 环境来运行。 + +1. 安装 NodeJS,参考[官方文档](https://nodejs.org/en/download) +2. 使用 `git clone https://github.com/zyronon/douyin.git` 下载项目到本地 +3. 进入项目目录` cd douyin `,在项目根目录下,运行`npm install`来下载依赖。 +4. 执行`npm run dev`来启动项目,项目默认地址为[`http://localhost:3000`](http://localhost:3000) +5. 在浏览器中打开[`http://localhost:3000`](http://localhost:3000) 来访问项目。 + Chrome切换成手机模式快捷键,先按F12调出控制台,再按Ctrl+Shift+M + ## 🎙 功能与建议 目前项目处于开发初期,新功能正在持续添加中,如果你对软件有任何功能与建议,欢迎在 Issues 中提出 diff --git a/vite.config.js b/vite.config.js index 48530e0..b3c6669 100644 --- a/vite.config.js +++ b/vite.config.js @@ -74,33 +74,33 @@ export default defineConfig({ // algorithm: 'gzip', // threshold: 10240, // }), - // viteImagemin({ - // gifsicle: { - // optimizationLevel: 7, - // interlaced: false, - // }, - // optipng: { - // optimizationLevel: 7, - // }, - // mozjpeg: { - // quality: 20, - // }, - // pngquant: { - // quality: [0.8, 0.9], - // speed: 4, - // }, - // svgo: { - // plugins: [ - // { - // name: 'removeViewBox', - // }, - // { - // name: 'removeEmptyAttrs', - // active: false, - // }, - // ], - // }, - // }), + viteImagemin({ + gifsicle: { + optimizationLevel: 7, + interlaced: false, + }, + optipng: { + optimizationLevel: 7, + }, + mozjpeg: { + quality: 20, + }, + pngquant: { + quality: [0.8, 0.9], + speed: 4, + }, + svgo: { + plugins: [ + { + name: 'removeViewBox', + }, + { + name: 'removeEmptyAttrs', + active: false, + }, + ], + }, + }), ], resolve: { alias: {