diff --git a/README.md b/README.md index b42939e..54ae457 100644 --- a/README.md +++ b/README.md @@ -6,180 +6,122 @@ -

Style Loader

+

Simple Universal Style Loader

Adds CSS to the DOM by injecting a `) - } - -``` +Use this piece of code somewhere in your server-side bundle: -From version 0.14.4 the captured styles can be get by using `getStyles()` as well: +```js +import universal from 'simple-universal-style-loader/universal'; -``` javascript -import { getStyles } from 'simple-universal-style-loader' +const html = universal.getStyles(); ``` ### Options #### `insertAt` -By default, the style-loader appends `