HEX
Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.30
System: Windows NT website-api 10.0 build 20348 (Windows Server 2016) AMD64
User: SYSTEM (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: C:/github_repos/ho-xsj-website/docs/how_to_run_frontend.md
# 概要

本文给出如何单独跑起官网前端项目

## 运行

需要安装node环境,最新的版本即可,进入到web目录

执行
```bash
npm i
```
安装依赖

接着执行
```bash
npm run start 即可启动前端服务
```

## 编译

执行
```bash
npm run build:prod
```
即可编译

接着将编译出来的html文件放入项目templates目录下,其他的静态资源放入static目录下,之后进行后续流程

## 刷新缓存

### OSS

https://oss.console.aliyun.com/bucket/oss-cn-beijing/xsj-static-new/object?path=website%2Fstatic%2Fjs%2F

### CDN

https://cdn.console.aliyun.com/refresh/cache?spm=5176.8466032.favorite.dcdn.789914501peidr

https://acdn.xsj21.com/website/static/js/common.js
https://acdn.xsj21.com/website/static/js/vendor.js
https://acdn.xsj21.com/website/static/js/main.js
https://acdn.xsj21.com/website/static/css/styles.css