@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 文档

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.90latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.90
1.0.80
1.0.60
1.0.50
1.0.40
1.0.30
1.0.21
1.0.10
1.0.00
0.4.20
0.4.10
0.4.00
0.3.70
0.3.60
0.3.50
0.3.40
0.3.31
0.3.20
0.3.10
0.3.00
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.100
0.1.90
0.1.80
0.1.70
0.1.50
0.1.41
0.1.30
0.1.20
0.1.10

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