@xea/react-service
v1.1.1
Published
基于 webpack 、webpack-chain、 ts-node 的react项目快速开发脚手架
Downloads
7
Maintainers
Readme
运行于 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