From 5d28e33660883b8c8d141cdba0a2b6f89d472b84 Mon Sep 17 00:00:00 2001 From: Matt Darnall Date: Sun, 13 Mar 2016 12:05:29 -0700 Subject: [PATCH] Updated README with example/server.js config - require Inert plugin --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87d0a8f..a416086 100644 --- a/README.md +++ b/README.md @@ -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 }); @@ -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 () { @@ -47,6 +48,8 @@ server.register({ ); ``` +See the `example/` folder for more. + ### Options: * `debug`: used to print statements to the console. Defaults to `false`