Skip to content

hongru/Node-CC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeCC

compress & combo js files

Usage

npm install -g nodecc
nodecc ./static/

defaults dir './'

  • need .nodecc file to config, file .nodecc looks like this:
{
    "encode": "utf8",
    "cc": [
        {
            "source": "tests/test.js",
            "target": "tests/test.min.js"
        },
        {
            "source": "tests/js/",
            "target": "tests/public/js/"
        },
        {
            "source": [
                "!|tests/licence.js",
                "tests/a.js",
                "tests/b.js"
            ],
            "target": "test/public/js/ab.js"
        }
    ]
}
  • if you just want to merge a file with no-compressed, you can add !| before js file. just like !|tests/licence.js

About

nodecc[compress & combo js files] by uglifyjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published