funny-react-app-archetype
react app config archetype
Last updated 2 days ago by eric14706 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install funny-react-app-archetype 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.3                                ...           latest (2 days ago)

18 Versions

  • 1.0.3                                ...           2 days ago
  • 1.0.3-alpha                                ...           6 days ago
  • 1.0.2                                ...           9 days ago
  • 1.0.1                                ...           25 days ago
  • 1.0.0                                ...           a month ago
  • 0.0.13                                ...           a month ago
  • 0.0.12                                ...           a month ago
  • 0.0.11                                ...           a month ago
  • 0.0.10                                ...           a month ago
  • 0.0.9                                ...           a month ago
  • 0.0.8                                ...           a month ago
  • 0.0.7                                ...           a month ago
  • 0.0.6                                ...           a month ago
  • 0.0.5                                ...           a month ago
  • 0.0.4                                ...           a month ago
  • 0.0.3                                ...           a month ago
  • 0.0.2                                ...           a month ago
  • 0.0.1                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 27
This Month 57
Last Day 14
Last Week 30
Last Month 229
Dependencies (77)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |