npm i --save nativescript-10hook-release-info
- Version: 1.0.0
- GitHub: https://github.com/rhrn/nativescript-10hook-release-info
- NPM: https://www.npmjs.com/package/nativescript-10hook-release-info
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
nativescript-10hook-release-info
Add release info to the app
Detect app in release (production) mode or not
Install
tns plugin add nativescript-10hook-release-info
Usage
-
build or prepare app
- will create
release-info.json
in app directory - example
{
"NODE_ENV": "development",
"release": false
} - will create
-
in app
const { release } = require('./release-info.json');
console.log(release ? 'Production mode' : 'Debug mode'); -
Inspired by nativescript-hook-debug-production