You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
文武
61781a5b0b
|
4 months ago | |
---|---|---|
public | 6 months ago | |
src | 6 months ago | |
.dockerignore | 6 months ago | |
.drone.yml | 6 months ago | |
.eslintignore | 6 months ago | |
.eslintrc.js | 6 months ago | |
.gitignore | 6 months ago | |
.prettierignore | 6 months ago | |
.prettierrc.js | 6 months ago | |
.stylelintrc.js | 6 months ago | |
.umirc.dev.ts | 6 months ago | |
.umirc.pre.ts | 6 months ago | |
.umirc.prod.ts | 6 months ago | |
.umirc.ts | 6 months ago | |
.umirc.uat.ts | 6 months ago | |
Dockerfile | 6 months ago | |
README.md | 6 months ago | |
default.conf | 6 months ago | |
nginxDev.conf | 4 months ago | |
package.json | 6 months ago | |
pont-config.json | 6 months ago | |
pontFetchMethodPath.ts | 6 months ago | |
pontTemplate.ts | 6 months ago | |
pontTransfrom.ts | 6 months ago | |
template.js | 6 months ago | |
tsconfig.json | 6 months ago | |
typings.d.ts | 6 months ago | |
ueditor.json | 6 months ago | |
yarn.lock | 6 months ago |
README.md
芒果活动管理后台
Getting Started
environment \
- node version v14.17.1
- yarn version 1.22.10
Install dependencies,
$ yarn
Start the dev server,
$ yarn start
Build 部署
// 生产环境部署
$ yarn build:prod
// 注意事项git监听到package.json变化要先执行 yarn 命令安装依赖
部署注意事项:
- 部署 html 到非根目录
配置文件中添加配置:
export default {
base: '/path/to/your/app/root',
};
- 静态资源在非根目录或 cdn
在配置文件中添加配置:
export default {
publicPath: "http://yourcdn/path/to/static/"
}
- 服务端渲染通过配置文件开启,具体参考http://localhost:8000
代码规范注意事项:
// 使用快速刷新(Fast Refresh)热更新
// 推荐写函数命名组件 例如:
const Foo = () => {};
export default Foo;