carryall-packer

2019-10-23 admin

carryall-packer是什么

什么是carryall-packer,Generates files for use with the Carryall.js script loader.

carryall-packer使用教程帮助文档

Carryall Packer

Packer is a Node.js build tool which minifies and stringifies JavaScript source files for use with the Carryall script loader.

Usage

Create a carryall.json file in the following format:

{
    "name": "app",
    "outDir": "/path/to/out",
    "cargoList": [{ "name": "foo.js", "path": "/path/to/src" }],
    "checks":[
        {
            "check": true,
            "checkPassed": ["foo.js"]
        }
    ]
}

You can either change into the directory where the carryall.json file (which in this case should specify relative paths) is located and execute the packer command:

$ cd /path/to/carryall.json

$ carryall-packer

Or you can pass the absolute path of the carryall.json file (which in this case should specify absolute paths) to the packer command:

$ carryall-packer --manifest='/path/to/carryall.json'

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-78057.html

文章标题:carryall-packer

回到顶部