Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

ezhlobo/modified-create-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project name

Usage

yarn start will start development server.

You have full control of webpack config here by modified react-scripts package.

Preconfigured stuff

  1. CSSModules with hot replacement
import React from 'react';

import './styles.css'; // `.test { color: red }`

export default () => <div styleName="test">This text is red</div>;

Note: It imports stylesheets outside from src directory without changing selectors.

  1. Aliases for better importing: src to source directory, and @ to components directory. So you can import files independently where you are:
// src/components/FavoriteComponent/index.js
import helpers from 'src/lib/helpers';
import Button from '@/Button';
  1. Postcss with autoprefixer, postcss-import and postcss-nested.

  2. Added redux, redux-saga, react-router and lodash.

About

DEPRECATED It's an example how to change default settings of create-react-app easily

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published