Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

@hiro-ui/react-scripts

Package Overview
Dependencies
Maintainers
11
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hiro-ui/react-scripts

It's react-scripts@4.0.0 but with our own tweaks.

npmnpm
Version
2.0.7
Version published
Weekly downloads
274
2390.91%
Maintainers
11
Weekly downloads
 
Created
Source

@hiro-ui/react-scripts

It's react-scripts@4.0.0 but with our own tweaks.

Notable changes

  • Node 12+
  • SASS is supported out of the box (no need to install the node-sass package)
  • WebWorker is supported out of the box - worker-loader plugin (just suffix a file with .worker.js)
  • ESLintWebpackPlugin and WorkboxWebpackPlugin are disabled
  • ReactRefreshPlugin is enabled (for worker entry file need to add workaround with dummy functions https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/TROUBLESHOOTING.md#usage-with-indirection-like-workers-and-js-templates)
  • Code splitting is disabled
  • Disabled CRA REACT_APP_ prefix for .env variables' names
  • lodash-es possible to use in jest-tests
  • used old format of manifest file
  • hiro-desktop config added through key --desktop (multiple entrypoints, support for modules in src/app/, NODE_TLS_REJECT_UNAUTHORIZED and HIRO_VERSION in process.env)

Available configuration parameters

VariableDevelopmentProductionNotes
PORT+-By default, the dev server will try to use port 3000. You may use this variable to specify a different port.
HOST+-By default, the development web server binds to localhost. You may use this variable to specify a different host.
HTTPS+-When set to true, app will run the development server in https mode.
PUBLIC_URL-+Your application is assumed to be hosted at the serving web server's root. You may use this variable to force assets to be referenced verbatim to the url you provide (hostname included). This may be particularly useful when using a CDN to host your application.
CI++When set to true, app treats warnings as failures in the build. It also makes the test runner non-watching. Most CIs set this flag by default.
GENERATE_SOURCEMAP-+When set to false, source maps are not generated for a production build. This solves out of memory (OOM) issues on some smaller machines.

FAQs

Package last updated on 12 Feb 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