Browse Source

update README.md

pull/44/head
zyronon 1 year ago
parent
commit
b53f15dcb2
  1. 23
      README-en-US.md
  2. 24
      README.md
  3. 54
      vite.config.js

23
README-en-US.md

@ -41,16 +41,11 @@ Vercel: <http://dy.ttentau.top> (This is recommended in China.) @@ -41,16 +41,11 @@ Vercel: <http://dy.ttentau.top> (This is recommended in China.)
<img width="150px" src='./public/docs/img-5.jpg' />
</div>
## 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 @@ -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.

24
README.md

@ -39,16 +39,10 @@ Netlify: <https://douyins.netlify.app> (需要翻墙) @@ -39,16 +39,10 @@ Netlify: <https://douyins.netlify.app> (需要翻墙)
<img width="150px" src='./public/docs/img-5.jpg' />
</div>
## 运行项目
## 相关帖子
- 掘金: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: <https://douyins.netlify.app> (需要翻墙) @@ -66,6 +60,18 @@ Netlify: <https://douyins.netlify.app> (需要翻墙)
- 彭十六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 中提出

54
vite.config.js

@ -74,33 +74,33 @@ export default defineConfig({ @@ -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: {

Loading…
Cancel
Save