grunt-unifon

0.1.0 • Public • Published

grunt-unifon

Grunt task to unify javascript files by JSON.

Example

grunt.initConfig({
    unifon: {
        dest: {
            options: {
                separator: "\n"
            },
            files: {
                "js/main.js": "js/main.json"
            }
        }
    }
});

main.json example:

[
    "foo.js",
    "bar.js",
    "mod/baz.js"
]
  • Content of files above are to be concatenated, saved as "main.js".
  • The path to the files must be relative to the JSON file.

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-unifon

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mach3