CRA Universal

CRA Universal

  • Docs
  • API
  • Help
  • Blog

›Guides

Introduction

  • Getting started

Guides

  • Deployment
  • Customization
  • Code Splitting
  • Prefetching

Integration

  • React Router
  • Redux
  • TypeScript

Customization

CRA Universal features zero config by default, but you can still override the default config with configuration file.

  1. Create crau.config.js file in the root of your CRA
  2. Here is the starting template
    module.exports = {
      modifyWebpack: config => config
    }
    

Configurable options

modifyWebpack

You can override default webpack configuration with this callback.

Example:

modifyWebpack: config => {
  const newConfig = {
    ...config,
    entry: './server/app.js'
  };
  return newConfig;
}

It doesn't assume any merging strategy, so it uses the returned output directly

← DeploymentCode Splitting →
  • Configurable options
    • modifyWebpack
CRA Universal
Docs
Getting StartedDeployment GuideAPI Reference
Community
Stack OverflowSpectrumTwitter
More
BlogGitHubStar
Copyright © 2020 Antony Budianto