svrx
  • Languages
  • svrx
  • svrx
    • SUMMARY
    • Contributing to svrx
    • Getting Started
    • Blog
      • Server-X: A Pluggable Platform For Local Frontend Development
    • Guide
      • API Reference
      • Option Reference
      • How To Use Routes
    • Plugins
      • How To Write A Plugin
      • How To Use Plugins
    • Practice
      • Integrations
      • Recipes
  • svrx
    • 概要
    • 贡献指南
    • 快速上手
    • Blog
      • Server-X:一款可能提升你十倍工作效率的工具
      • 使用 svrx 实现更优雅的接口 Mock
      • 说说 Server-X 的免安装插件机制
    • 进阶指南
      • API 索引
      • 参数列表
      • Routing 路由的使用
    • 插件体系
      • 如何写一个插件
      • 插件的使用
    • 项目实战
      • 结合主流脚手架使用
      • 特定场景使用
Powered by GitBook
On this page

Was this helpful?

  1. svrx
  2. 项目实战

结合主流脚手架使用

Previous项目实战Next特定场景使用

Last updated 3 years ago

Was this helpful?

使用 或 初始化项目:

# CRA
npm init react-app my-app

# Vue CLI
npm i @vue/cli -g
vue create my-app

项目根目录创建文件 webpack.config.js:

// CRA
module.exports = require('react-scripts/config/webpack.config')('development');
// Vue CLI
module.exports = require('@vue/cli-service/webpack.config');

好了,就这些 🎉

svrx --webpack
image
image

结合 使用更香哦 (ˇˍˇ)

插件
create-react-app
vue-cli