From ae4dcc322ed31d703bcd2535a9e9c1bd15a6c534 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Fri, 15 Aug 2014 08:31:51 -0600 Subject: [PATCH] Updated docs related to raptor-optimizer --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1566bade1..070250d8e 100644 --- a/README.md +++ b/README.md @@ -398,10 +398,11 @@ You can then bundle up the above program for running in the browser using either The `raptor-optimizer` CLI can be used to generate resource bundles that includes all application modules and all referenced Raptor Template files using a command similar to the following: ```bash -# First install the raptor-optimizer +# First install the raptor-optimizer and the raptor-optimizer-rhtml plugin npm install raptor-optimizer --global +npm install raptor-optimizer-rhtml -raptor-optimizer --main run.js --name my-page +raptor-optimizer --main run.js --name my-page --plugins raptor-optimizer-rhtml ``` This will produce a JSON file named `build/my-page.html.json` that contains the HTML markup that should be used to include the required JavaScript and CSS resources that resulted from the page optimization. @@ -409,7 +410,7 @@ This will produce a JSON file named `build/my-page.html.json` that contains the Alternatively, you can inject the HTML markup into a static HTML file using the following command: ```bash -raptor-optimizer --main run.js --name my-page --inject-into my-page.html +raptor-optimizer --main run.js --name my-page --plugins raptor-optimizer-rhtml --inject-into my-page.html ```