1.0.5 • Published 4 years ago

funny-react-app-archetype v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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.

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.3-alpha

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago