npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@niveditn/react-scripts

v2.1.2

Published

Custom configuration and scripts for Create React App.

Readme

react-scripts

Customized react-scripts for Nuage Networks VSD UI Framework

Getting Started

Clone the repository to make changes:

git clone https://github.com/niveditn/react-scripts.git

Prerequisites

This library is meant for use in an un-ejected CRA app. (See facebook/create-react-app.) It sligthly modifies the behavior of the original scripts used to run, build and test the CRA app.

Installation

To install this customized version of react-scripts, simply point the corresponding package.json key towards this github repo.

i.e. Replace this:

"react-scripts": "^2.1.1"

with:

"react-scripts": "@niveditn/react-scripts"

Then, in your project directory, run npm install command:

npm i

Your project should now be using the custom version of react-scripts.

Usage

The usage is identical to original package. The available npm scripts are:

"scripts": {
  "start": "react-scripts start",
  "build": "react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject",
},

Customization

Current version: 2.1.1

The following customization has been done to the original react-scripts package.

package.json

Add the following packages to the manifest file:

    "base64-inline-loader": "^1.1.0",

config/webpack.config.dev and config/webpack.config.prod

base64-inline-loader

Add this loader at the top of the config objects, right under oneOf key. Make sure it is present before url-loader settings.

oneOf: [
  // "base64-inline-loader" converts matching images to base64 strings.
  // If you add this loader at the top, you can leave the "url-loader"
  // as it is, since webpack will use the first loader it matches.
  {
    test: /\.(jpe?g|png|gif|svg)$/i,
    loader: require.resolve('base64-inline-loader'),
    options: {
      name: 'static/media/[name].[hash:8].[ext]',
    }
  },
  // [... "url-loader" settings and so on ...]
]

Keeping this loader at the top means that if an image file matches its test, it will be converted to base64 string as intented. The remaining loaders will not be checked, so url-loader will not be used for the matching file.

scripts/start.js

Disable typescript checking

Typescript checking can be disabled until the project is updated to React 16.

Remove or comment out these lines of code:

30    const verifyTypeScriptSetup = require('./utils/verifyTypeScriptSetup');
31    verifyTypeScriptSetup();

script/utils/createJestConfig.js

Modify the config object in this file as follows:

Ignore transform

Replace the transformIgnorePatterns key:

transformIgnorePatterns: [
  "<rootDir>/node_modules/(?!@)",
  "<rootDir>/src/node_modules/(?!@)"
],
moduleNameMapper

Add the third key to moduleNameMapper:

moduleNameMapper: {
  '^react-native$': 'react-native-web',
  '^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
  "\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
Ignore files

Add the following object to config:

testPathIgnorePatterns: [
  "<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]",
  "<rootDir>/src/lib/models",
  "<rootDir>/src/lib/vspk",
  "<rootDir>/src/lib/vis-graphs",
  "<rootDir>/src/lib/test-utils",
  "<rootDir>/src/lib/service",
],

Built with

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

Versioning

This library follows the same versioning as facebook's react-scripts package.

At the time of writing this, react-scripts version was 2.1.1, which is the original source used.

License

This project is licensed under the MIT License - see the LICENSE.md file for details