Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

funny-react-app-archetype

184668991022ISC1.0.5

react app config archetype

webpack, babel, react

readme

funny-react-app-archetype

Introduction

funny-react-app-archetype is an archetype of react app configuration, including babel and webpack.

Usage

src/client/.babelrc.js:

module.exports = {
  extends: "funny-react-app-archetype/config/babel/babelrc-client"
};

src/server/.babelrc.js:

module.exports = {
  extends: "funny-react-app-archetype/config/babel/babelrc-server"
};

webpack.config.js:

module.exports = require("funny-react-app-archetype/config/webpack/webpack.config");

webpack.config.dev.js:

module.exports = require("funny-react-app-archetype/config/webpack/webpack.config.dev");

.eslintrc.js:

module.exports = {
  extends: "./node_modules/funny-react-app-archetype/.eslintrc.js"
};

Overwrite

To overwrite optimization.splitChunks:

const { splitChunks } = require("funny-react-app-archetype/config/webpack/partial/split-chunks.js")().optimization;
const config = require("funny-react-app-archetype/config/webpack/webpack.config");
config.optimization.splitChunks = Object.assign({}, splitChunks, {/* User Defined Options */});

Acknowledgement

Big thank to electrode-io electrode , a powerful library to build universal React app . I was inspired by electrode to write this package based on one of its amazing package electrode-archetype-react-app-dev.

changelog

2019-11-04

1.0.4

Removed

  • remove ActionWatcher
  • remove getAllPaths
  • remove Container

2019-09-16

1.0.3

Added

  • Add @babel/runtime

    Changed

  • Update mocha version
  • node engines notification

    Removed

2019-09-12

1.0.2

Added

  • Added LICENSE file
  • Supplement CHANGELOG.md
  • Added NOTICE file
  • Added .npmrc file for registry

    Changed

  • Edit README.md

    Removed

2019-08-28

1.0.1

Added

  • Added a new util class ActionWatcher

Changed

  • Updated util class Container
  • Updated template/template.html for adding noscript part

    Removed

2019-08-20

1.0.0

Added

  • Added new util class Container for app assets management
  • Added webpack partial for chunk split optimization

Changed

  • Updated registration flow
  • Removed title length restriction from resource cards

  • Updated .eslintignore

  • Updated README.md
  • Updated utils methods format
  • Updated package.json

Removed

2019-08-01 to 2019-08-16

dev release 0.0.1 to 0.0.13

Added

  • Added babel configs for client side
  • Added babel configs for server side
  • Added webpack config partials
  • Added webpack.config.js
  • Added webpack.config.dev.js

    Changed

Removed