funny-react-app-archetype

1.0.5 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i funny-react-app-archetype

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

49.8 kB

Total Files

42

Last publish

Collaborators

  • eric14706