compress & combo js files
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