1.1.6 • Published 6 years ago
enterprise-loktar-portal-fe v1.1.6
数云企业版集成子应用开发的Portal项目
为了方便子应用在开发时就与Portal
环境进行集成,所以发布此项目作为子应用的入口项目。
如何使用
- 安装依赖
npm install -D enterprise-portal-fe
- 设置子应用配置
执行命令
node ./node_modules/enterprise-portal-fe/generate-html.js --configPath ./app.config.js
该命令会将app.config.js
文件中的配置写进 node_modules/enterprise-portal-fe/index.html
文件。
建议将该命令配置到 package.json
的 scripts
里面。
- 设置本地服务静态文件目录
app.use('/', express.static(process.cwd() + '/node_modules/enterprise-portal-fe'));
// js、css
app.use('/portal', express.static(process.cwd() + '/node_modules/enterprise-portal-fe'));
// 语言包,将来会不需要
app.use('/i18n', express.static(process.cwd() + '/node_modules/enterprise-portal-fe/i18n'));
何时需要执行第二步
- 安装
enterprise-portal-fe
后 - 更改
app.config.js
文件内容后
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago