Skip to content

Files

This branch is 1601 commits behind wix/stylable:master.

react-scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2020
Apr 3, 2020
Apr 3, 2020
Apr 3, 2020
Aug 7, 2018
Aug 7, 2018
Feb 12, 2020
Apr 22, 2020
Aug 8, 2018
Aug 8, 2018

@stylable/react-scripts

npm version

A fork of react-scripts tailored for quick and easy creation of Stylable projects.

Major changes from react-scripts

  • Uses TypeScript instead of Babel, configured to work with Webpack's tree-shaking and dynamic chunks on import().
  • Adds built-in support for Stylable.

Getting started

This is the quickest way to get a Stylable project up and running. It is an opinionated boilerplate that uses TypeScript and Stylable instead of css-loader

In your terminal, run:

$ npx create-react-app@3.2.0 --scripts-version @stylable/react-scripts [APP NAME]
$ cd [APP NAME]
$ yarn
$ yarn start

Note: due to recent changes with how create-react-app handles external customization, we are forced to lock our react-scripts package to an older version of create-react-app (v3.2.0).

License

Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by an MIT license.