Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kroid/frontend-dev-server
- Owner: Kroid
- Created: 2016-09-10T11:24:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-10T11:52:41.000Z (over 8 years ago)
- Last Synced: 2024-10-13T10:53:56.491Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.