Server-X: 为高效得前端开发而构建的平台

server-x 就是一个本地服务器, 并且它还是一个功能丰富、使用便捷的轻量级服务器。svrx 还自带了诸如自动打开浏览器、监听代码变动自动刷新(livereload)、proxy 等实用性非常强的功能。 是的,你也可以说,部分 dev server 也是能做到的。

Node.js HTTP工具

访问GitHub主页

共417Star

详细介绍

A pluggable frontend server, it just works

svrx

npm node Build Status codecov Dependencies DevDependencies Join the chat at https://gitter.im/svrxjs/svrx

svrx(server-x) is a platform built for efficient front-end development.

Features

🍻 Serve a static site or SPA in current directory
🐱 Easy to proxy everything
🏈 Auto refresh the page on sources change(inline reload on stylesheets change)
🍀 Powerful plugins: use without installation
🐥 Routing with hot reload: never restart your server
🚀 Toolkit for quick plugin development
🎊 ...

Quick Start

npm install -g @svrx/cli
mkdir example && cd example
echo '<html><body>Hello svrx!</body></html>' > index.html
svrx

Documentation

You can read documentation here.

你可以在 这里 阅读使用文档。

Support

Feel free to raise an issue.

Contributing

Please see the contributing guidelines.

Providing a new plugin

For contributors planning to write a new plugin, please see the plugin development guide.

👉 See all plugins

推荐源码