@tplss/build-react-app

0.0.8 • Public • Published

build-react-app

one command to build react app (just like create-react-app)

Install

$ npm install tplss/build-react-app -g

Usage

$ cd /path/to/your-react-app
$ build-react-app --env production

Configure

just like webpack, add a webpack.config.js:

  'use strict';
  const webpackConfig = require('build-react-app');
  const merge = require('webpack-merge');

  module.exports = mode => {
    if (mode === 'development') {
      return merge(webpackConfig(mode), {
        // todo: fill your own config for development
      });
    }

    return merge(webpackConfig(mode), {
      // todo: fill your own config for production
    });
  };

Features

  • ES6+ (+stage-3)
  • jsx
  • sass

Readme

Keywords

Package Sidebar

Install

npm i @tplss/build-react-app

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

7.49 kB

Total Files

8

Last publish

Collaborators

  • weiran.zsd
  • xuedingedemao