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

react-scripts-custom-config

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scripts-custom-config

A forked version of CRA's react-scripts which support customisation of config with out ejecting

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-scripts-custom-config

A forked version of CRA's react-scripts which support customisation of config with out ejecting.

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

  • Getting Started – How to create a new app.
  • User Guide – How to develop apps bootstrapped with Create React App.

Quick Start

npx create-react-app <project-name> --scripts-version react-scripts-custom-config

Customising config

In your project's root create a folder archetype. Create a config file with same name say if you want to customise Webpack config, then create a file webpack.config.js under <root-dir>/archetype. Add your customised config.

module.exports = (webpackEnv, defaultConfig) => {
    // defaultConfig - config provided by CRA, you can mutate/override it as per you needs and pass the same

    const webpackConfig = {
      ...
    };

    return webpackConfig
}

Similarly to you can customise Webpack DEV Sever config by creating a file webpackDevServer.config.js & Jest config with jest.config.js as shown above.

FAQs

Package last updated on 20 Mar 2024

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