@nbfe/react-cli

1.0.9 • Public • Published

使用

npm i -D @nbfe/react-cli

命令行

  • npx react-cli serve // 启动开发服务器
  • npx react-cli build // 生产环境下构建
  • npx react-cli inspect // 检查内部 webpack 配置

api 调用

const { getWebpackConfig } = require('@nbfe/react-cli')

const webpackConfig = getWebpackConfig(false)

react.config.js

module.exports = config => {
  const { isDevelopment, isMac, ipAddress } = config
  return {
    devServer: {
      port: 3000
    },
    dllEntry: {
      vendor: ['react', 'react-dom']
    }
  }
}

Vue CLI 文档

/@nbfe/react-cli/

    Package Sidebar

    Install

    npm i @nbfe/react-cli

    Weekly Downloads

    3

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    34 kB

    Total Files

    20

    Last publish

    Collaborators

    • shuoshubao