🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@reactunity/scripts

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactunity/scripts

Configuration and scripts for React Unity.

Source
npmnpm
Version
0.1.11
Version published
Weekly downloads
13
18.18%
Maintainers
1
Weekly downloads
 
Created
Source

React Unity Scripts

npm version

This package includes scripts and configuration used by React Unity.

Installation

npm i @reactunity/scripts

Commands

  • react-unity-scripts start - Start the dev server with HMR
  • react-unity-scripts build - Create the production ready build
  • react-unity-scripts start --test - Start the test server (entry file will be test.ts instead of index.ts)

Extra Environment Variables

  • FILENAME - Name of the generated javascript file. index.js by default.
  • BUILD_DIR - Path to the generated output. Relative to the project. ../Assets/Resources/react by default.
  • GENERATE_SOURCEMAP - false by default.
  • HARD_RELOAD - Reload the entire UI instead of doing HMR. false by default.
  • IMAGE_INLINE_SIZE_LIMIT - 0 by default. Because non-inlined images will be faster in Unity. However, users may still want to inline images.

Environment variables can also be defined by having .env, .env.local, .env.<development|production> in project folder.

FAQs

Package last updated on 03 Apr 2021

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