@ontrackms/nativescript-dotenv
v1.3.3
Published
Adds common NativeScript configurations to Dotenv
Downloads
12
Readme
NativeScript Dotenv Plugin
Adds common NativeScript configurations to Dotenv
Installation
npm i -D @ontrackms/nativescript-dotenv
Usage
Add the following lines to the exported function in webpack.config.js
const { NativeScriptDotEnvPlugin } = require("@ontrackms/nativescript-dotenv");
module.exports = (env) => {
webpack.init(env);
// must be called after webpack.init
NativeScriptDotEnvPlugin.init(webpack);
return webpack.resolveConfig();
};
Configuration
The following environment variables are supported in the dotenv (.env) file.
All variables are optional ⚙️
NATIVESCRIPT_BUNDLE_ID=com.corp.app.test
NATIVESCRIPT_BUNDLE_VERSION=3.2.1
NATIVESCRIPT_APPLE_TEAM_ID=ASDFG1234