marketingsystem_temp_h5/README.md

48 lines
930 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 营销系统 模版H5
```
### 默认 npm (pnpm 需要注释 webpack.base.js 配置 resolve-modules)
npm install
```
### 分支介绍
```
main 开发分支
```
### 启动项目
```
npm run start
```
### 测试打包
```
npm run dev
```
### 生产打包(推荐)
```
npm run build
```
### 单独打包 模版 js
```
### webpack.com.js-entry 配置需要打包的模版入口
模版开发
环境H5正常业务+ PC 引入(配置样式)
规范:
目录 /src/views/templates
命名 cmsXxxx
类组件开发 + 外部文件引入样式 (index.scss)
props.comType 1 H5 2 配置页(PC)
cdn 引入图片
注意事项:
1、开发完成 配置(comType: 2)模拟pc引入校验页面是否正确
2、模版引入(PC)不支持 vh、fixed等(需要样式兼容 H5 fixed + PC sticky)
3、模版引入(PC)暂不支持直接引入子组件(全局/子组件),可通过动态组件引入;
npm run com
```