Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imweb/fis3-deploy-offpack
fis3 offline package
https://github.com/imweb/fis3-deploy-offpack
Last synced: about 2 months ago
JSON representation
fis3 offline package
- Host: GitHub
- URL: https://github.com/imweb/fis3-deploy-offpack
- Owner: imweb
- Created: 2015-09-08T07:44:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T07:03:33.000Z (about 9 years ago)
- Last Synced: 2024-11-14T17:14:17.733Z (2 months ago)
- Language: JavaScript
- Size: 1.2 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 项目生成离线包
将项目产出成离线包,http路径变成了本地的文件路径。
打包使用的http路劲是 fis-conf.js 中配置的domain。
```fis.match('**.js', {
domain: 'http:://9.url.cn/edu'
}).match('**.css', {
domain: 'http:://8.url.cn/edu'
}).match('::image', {
domain: 'http:://7.url.cn/edu'
}).match('**.html', {
domain: 'http:://ke.qq.com/mobilev2'
});fis.plugin('offpack', {
// 产出目录
to: '../pack',
zipTo: '../publish/offline', // zip文件单独copy到这里
// glob表达式,自定义需要打包的文件,如果不填,默认打包全部文件
packSrc: [
'/*.html',
'**.{css,scss}',
'**.{png,gif,jpg}',
'pkg/**.js'
]
})
```最终html最产出到ke.qq.com/mobilev2下对于的目录,整个产出会打成pack.zip压缩包。