Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@linsight/react-scripts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linsight/react-scripts

Customised configuration and scripts for Create React App with support for multiple entry points.

  • 3.4.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@linsight/react-scripts

Customised react-scripts to support mutiple entry points.

Usage

  1. Update your package.json file to replace dependency react-scripts into:

    "dependencies": {
        "@linsight/react-scripts": "~3.4.3",
        ...
    }
    
    
  2. Create a .env to your project root if you don't have one. Add to the .env file your entry points. Example:

    ENTRY_POINT_INDEX="index"
    ENTRY_POINT_ADMIN="admin"
    
  3. If your new entry point needs a HTML file (HtmlWebpackPlugin), you can simply add a HTML file named after the entry point in the public directory. e.g. admin.html.

  4. You can also nest an index.html a subdirectory instead. e.g. admin/index.html

Note

  1. The default index entry point will be working as normal if no custom entry points are defined in the .env file.
  2. However, if custom entry points are defined in the .env file, ONLY custom entry points will be used. This means you need to add ENTRY_POINT_INDEX="index" to the .env file if you want to keep the default index entry point.

This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

FAQs

Package last updated on 25 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc