Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfrazee/stack-assets-builder
live builds requests for js and css using browserify and less
https://github.com/pfrazee/stack-assets-builder
Last synced: 14 days ago
JSON representation
live builds requests for js and css using browserify and less
- Host: GitHub
- URL: https://github.com/pfrazee/stack-assets-builder
- Owner: pfrazee
- Created: 2015-02-06T02:37:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-06T06:20:47.000Z (almost 10 years ago)
- Last Synced: 2024-10-30T15:54:38.349Z (2 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stack Assets Builder
built for [stack](https://github.com/creationix/stack) but can be used on its own
```js
var stack = require('stack')
require('http').createServer(stack(
require('stack-assets-builder')({ enabled: true, root: __dirname }),
require('stack-assets-static')({ root: __dirname })
))
```options
- enabled: boolean, should the builder be active? this can be changed on the passed-in object to toggle it
- root: string, the path to look for the assets injs files will be looked for under `root+'/src/*'` and hosted at `/js/*`
less files will be looked for under `root+'/less/*'` and hosted at `/css/*`