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
:
moduleexports = extends: "funny-react-app-archetype/config/babel/babelrc-client";
src/server/.babelrc.js
:
moduleexports = extends: "funny-react-app-archetype/config/babel/babelrc-server";
webpack.config.js
:
moduleexports = ;
webpack.config.dev.js
:
moduleexports = ;
.eslintrc.js
:
moduleexports = extends: "./node_modules/funny-react-app-archetype/.eslintrc.js";
Overwrite
To overwrite optimization.splitChunks
:
const splitChunks = optimization;const config = ;configoptimizationsplitChunks = Object;
Acknowledgement
Big thank to electrode-io , 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.