Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kroid/frontend-dev-server

Dev webserver for frontend works
https://github.com/kroid/frontend-dev-server

Last synced: about 2 months ago
JSON representation

Dev webserver for frontend works

Awesome Lists containing this project

README

        

# frontent-dev-server
Dev webserver for frontend works.

## Features:
* multiple roots
* autocompile jade, pug, sass, scss files
* proxy requests
* custom connect-like middlewares

## Getting started
```
npm i --save-dev frontent-dev-server
```

```javascript
var modRewrite = require('connect-modrewrite');
var Server = require('frontent-dev-server');
var server = new Server({
root: ['./app', './public'],
port: 3001,
proxy: {
'/api/': 'https://myapiserver.com',
},
middlewares: [
modRewrite([ '!\\.\\w+$ /index.html [L]' ]) // for angularjs projects
]
});

server.start();
```

See example.