@xea/react-service
基于 webpack 、webpack-chain、 ts-node 的react项目快速开发脚手架
Last updated 2 months ago by yejiang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @xea/react-service 
SYNC missed versions from official npm registry.

运行于 ts-node 环境,ts 配置文件,基于 webpack-chain,自定义再配置 webpack 的 React 快速开发项目脚手架

package.json

{
  "scripts": {
    "serve": "xea-react-service serve",
    "build": "xea-react-service build"
  }
}

xea.config.ts

import { Options } from '@xea/react-service/types'

const config: Options = {
  entryPath?: string;
  outputDir?: string;
  publicPath?: string;
  assetsDir?: string;
  includeDir?: RegExp[],
  excludeDir?: RegExp[],
  chainWebpack?: (config: Config, env:NODE_ENV_TYPE) => Config;
  devServer?: DevServer;
  htmlTitle?: string;
  /** 是否显示每个模块构建时间 */
  smp?: boolean;
}

export default config;

Installation

npm install --save-dev @xea/react-service

Links

Features

  • xea.config.ts
  • webpack-chain
  • postcss

License

MIT

Current Tags

  • 1.1.1                                ...           latest (2 months ago)

4 Versions

  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |