Giter Site home page Giter Site logo

Comments (1)

pengzhanbo avatar pengzhanbo commented on August 24, 2024

mock 服务部署
我不确定这是否满足你的生产环境的需求。

首先这个插件不会往你的项目构建产物中注入任何额外的代码,这是为了避免对你的项目产生污染。但还是额外提供了一个 build 选项,将会在你的 构建输出目录中生成一个独立的 mockServer 目录,它是一个轻量的 node 服务,你可以在
任何支持部署 node 应用的 服务器上部署并启动它,然后通过中间代理服务将你的生产接口进行转发,即可使用 mock 服务数据。

from vite-plugin-mock-dev-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.