🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@nbfe/react-cli

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nbfe/react-cli

React CLI

latest
Source
npmnpm
Version
1.0.9
Version published
Weekly downloads
3
-92.68%
Maintainers
1
Weekly downloads
 
Created
Source

使用

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

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts