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

stoke-react-scripts

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stoke-react-scripts

Common scripts for running React-based apps and websites

  • 2.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

stoke-react-scripts

Common scripts for running React-based apps and websites.

Features

  • Babel (Latest ES + Stage 2, async functions)
  • Webpack 3
  • CSS Compilation
    • SASS + PostCSS (autoprefixer, pxtorem, and automatic flexbox fixes)
  • Development
    • Hot reloading of React components and CSS
  • Production
    • Minified asset builds (both JS and CSS) with JS tree shaking
    • Splits JS assets into chunks
    • Server-side rendering of react-loadable components (via babel-plugin-import-inspector)
  • Supported Browsers: last 2 major versions of current browsers, IE11, > 1% in US
    • Configured in CSS Autoprefixer
    • Promise polyfill for IE11

Installation

  1. In your repo, run: yarn add stoke-react-scripts or npm install stoke-react-scripts --save.

  2. Add the following to your package.json file:

{
  "scripts": {
    "dev": "stoke-react-scripts dev",
    "build": "stoke-react-scripts build"
  }
}

Usage

Development server

npm run dev

Production build

npm run build

Conventions

Client

  • Entry point should be src/client/index.js
  • SCSS is extracted from import statements

Server

  • Entry point should be src/server/index.js

Learn by Example

Check out webpack-react-localcss-boilerplate for an example project setup.


Inspired by react-scripts.

FAQs

Package last updated on 03 Jul 2017

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