Skip to content

Commit

Permalink
Updated README with example/server.js config
Browse files Browse the repository at this point in the history
- require Inert plugin
  • Loading branch information
mdarnall committed Mar 13, 2016
1 parent 36c3681 commit 5d28e33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $ npm install hapi-sass --save
```javascript
var Hapi = require('hapi');
var HapiSass = require('../index')
var Inert = require('inert');

var server = new Hapi.Server();
server.connection({ port: 1337 });
Expand All @@ -34,10 +35,10 @@ var options = {
srcExtension: 'scss'
};

server.register({
server.register([Inert, {
register: HapiSass,
options: options
}
}]
, function (err) {
if (err) throw err;
server.start(function () {
Expand All @@ -47,6 +48,8 @@ server.register({
);
```

See the `example/` folder for more.

### Options:

* `debug`: used to print statements to the console. Defaults to `false`
Expand Down

0 comments on commit 5d28e33

Please sign in to comment.