Commit d35e1579 by Jamos

feat: 🎨

parent 75d1769d
......@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:52:33
* @LastEditTime: 2021-08-03 13:50:37
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
-->
......@@ -15,10 +15,30 @@ npm run dev
yarn dev
```
## 官方文档
## 打包
根据公司运维规范,打包目录必须为 dist 目录
```
npm run build
```
## NEXT 官方文档
https://www.nextjs.cn/docs
## 注意
模板暂不完整,无法启动
模板下载后将所有配置换成自己工程的
### git 地址更换
```
//使用如下命令更换git地址
git remote set-url origin '你的git工程ssh地址'
//使用如下命令查看是否更换成功
git remote -v
```
......@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 16:45:28
* @LastEditTime: 2021-08-03 20:03:51
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
......@@ -38,7 +38,7 @@ module.exports = withLessExcludeAntd({
config.plugins.push(
new webpack.DefinePlugin({
'process.env': {
DEPLOY_ENV: JSON.stringify(process.env.DEPLOY_ENV),
DEPLOY_ENV: JSON.stringify(process.env.DEPLOY_ENV || 'dev'),
},
}),
);
......
{
"name": "xiaomai-web-office-ssr",
"version": "0.1.0",
"name": "xiaomai-website-ssr-template",
"version": "1.1.0",
"scripts": {
"dev": "next dev",
"build": "next build && next export -o dist && npm run nd",
......@@ -65,6 +65,6 @@
},
"main": "index.js",
"repository": "ssh://git@xmgit.ixm5.cn:10022/liguokang/xiaomai-website-ssr-template.git",
"author": "liguokang <liguokang@xiaomai5.com>",
"author": "©2021 杭州杰竞科技有限公司 版权所有",
"license": "MIT"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment