Code Monkey home page Code Monkey logo

fis-zoo's Introduction

fis-zoo's People

Contributors

xwenliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fis-zoo's Issues

请问release到相对目录具体是做什么?

我在做一个基于ionic的hybrid app项目,希望release后,所有的资源引用能替换为相对路径。
安装zoo后,我做了一个demo测试,但是releas后的路径并不符合预期。
demo结构:
/demo/index.html, 在index.htm里引用 app.js, "js/app.js"
/demo/js/app.js

release后,
/output/index.html, 在index.html里的app.js 引用变成了 “../js/app.js", 预期的路径应该是”js/app.js"
/output/js/app.js

@xwenliang, 请问是我配置的问题,还是 zoo并不是设计做这个的。

附上配置:

//发布为相对路径
fis.config.set('roadmap.relative', true);

//部署配置
fis.config.set('roadmap.path', [

    {
        reg:/.*\.(?:js|sass|css|png|jpg|gif|html)/i,
        release: '$&'
    },

    //任何其它文件不发布
    {
        reg: /\w+.(?:json|cmd)/i,
        release: false
    }
]);


//使用fis release --dest local来使用这个配置
fis.config.merge({
    deploy : {
        local : {
            to : '../output',
            exclude: /(?:\/_[^/]+\.\w+)|(?:\.(?:cmd|json))$/i
        }
    }
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.