This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dependencies-injector

1.1.1 • Public • Published

Dependencies Injector

Add and copy dependencies such as css and js to you html main file.

Usage

node index.js [flags] jsonConfFile htmlFileToInject

  node index.js -P  ./example/dependencies.json ./example/index.html

-P pretty flag


Json config example

  { 
    "rootdir":"example",
    "libraries":[
      {
        "htmlpos": "head",
        "dependencies": [{
          "origin": "example/vendor/app.css",
          "dest": "css"
        }, {
          "origin": "example/vendor/colors.css", 
          "dest": "css"
        }]
      }, {
        "htmlpos": "body",
        "dependencies": [{
          "origin": "example/vendor/app.js",
          "dest": "js"
        }]
      }
    ]
  }

Package Sidebar

Install

npm i dependencies-injector

Weekly Downloads

6

Version

1.1.1

License

ISC

Last publish

Collaborators

  • evesan