fis3-deploy-offline-pack
将项目产出成离线包,http路径变成了本地的文件路径。
Last updated 4 years ago by imweb .
ISC · Original npm · Tarball · package.json
$ cnpm install fis3-deploy-offline-pack 
SYNC missed versions from official npm registry.

项目生成离线包

将项目产出成离线包,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-release', {
    // 产出目录
    to: '../pack',
    zipTo: '../offline', // zip文件单独copy到这里
    // glob表达式,自定义需要打包的文件,如果不填,默认打包全部文件
    packSrc: [
        '/*.html',
        '**.{css,scss}',
        '**.{png,gif,jpg}',
        'pkg/**.js'
    ]
})

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |