@vyg/react-scripts

Configuration and scripts for Create React App.

Usage no npm install needed!

<script type="module">
  import vygReactScripts from 'https://cdn.skypack.dev/@vyg/react-scripts';
</script>

README

@vyg/react-scripts

This is "forked" from Facebook's react-scripts v2.0.4 to customize our version of create-react-app. It contains the following changes:

  • Add sass-mq
  • Remove service-worker
  • Add support for babel-plugin-react-css-modules
  • Add support for decorators
  • Add module resolver to resolve ~ to base src directory
  • Treat *.global.(css|scss) as global CSS and all else as modules CSS

Usage

npx create-react-app --scripts-version=@vyg/react-scripts APP_NAME

How to make changes

  • Makes changes
  • Bump package.json version
  • npm publish

Original react-scripts package

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