Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reid committed Apr 11, 2016
2 parents 1687f77 + c27b861 commit a9992ba
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ If you are using a different file extension, set it in the `extensions` property

***hello.js***
``` js
import styles from "{}/hello.mss";
import styles from "/hello.mss";

Template.hello.helpers({
styles: styles
Expand All @@ -71,13 +71,6 @@ Template.hello.helpers({
</template>
```

***Alternative JS import syntax***
``` js
Template.hello.helpers({
styles: CssModules.import("{}/hello.mss")
});
```

### Relative Imports
Relative imports are supported when using the **import ... from** syntax.
Given the structure:
Expand All @@ -99,16 +92,6 @@ Template.hello.helpers({
});
```


This will be converted to:
``` js
var styles = CssModules.import("{}/client/hello.mss");

Template.hello.helpers({
styles: styles
});
```

## PostCSS Plugins
Any PostCSS plugins can be used (as long they don't conflict with the CSS modules core plugins); the following PostCSS plugins are the core CSS modules plugins and therefore used by default:

Expand Down

0 comments on commit a9992ba

Please sign in to comment.