Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aruntk committed Jan 21, 2017
1 parent 675bbf0 commit d99e8fb
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ module: {
loaders: [
{
test: /\.html$/, // handles html files. <link rel="import" href="path.html"> and import 'path.html';
loader: 'wc'
loader: 'wc'
// if you are using es6 inside html use
// loader: 'babel!wc'
// similarly you can use coffee, typescript etc. pipe wc result through the respective loader.
},
{
test: /\.js$/, // handles js files. <script src="path.js"></script> and import 'path';
Expand All @@ -79,7 +82,19 @@ module: {
]
}
```
### Using es6, typescript, coffee etc inside html

if you are using es6 inside html use
```js
loader: 'babel!wc'
```
similarly you can use coffee, typescript etc. pipe wc result through the respective loader.
```js
loader: 'ts!wc'
```
```js
loader: 'coffee!wc'
```

### Like it?

Expand Down

0 comments on commit d99e8fb

Please sign in to comment.