New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ionic/cli-hooks

Package Overview
Dependencies
Maintainers
13
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/cli-hooks

Useful hook scripts for Ionic apps

1.0.0-rc.1
latest
Source
npm
Version published
Maintainers
13
Created
Source

CLI Hooks

A collection of useful hook scripts for Ionic apps.

Install

$ npm i @ionic/cli-hooks

Use

Modify your ionic.config.json file to add a hooks object:

  "hooks": {
    "<hook>": [
      "node_modules/@ionic/cli-hooks/<file>.js"
    ]
  }

Replace <hook> with the name of the hook you want to use and <file> with the file name within this package.

See CLI Hook documentation for details.

List

  • node_modules/@ionic/cli-hooks/add-cordova-engine.js: Before a build, insert cordova.js script tag into your index.html file if it does not already exist.
  • node_modules/@ionic/cli-hooks/remove-cordova-engine.js: After a build, restore the original index.html file.

FAQs

Package last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts