Skip to content

Commit

Permalink
Add Webpack 3 usage to README
Browse files Browse the repository at this point in the history
  • Loading branch information
niksudan committed Jan 10, 2018
1 parent 4d16665 commit 7181669
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@ The package depends on Tslint 4.0+, no longer works with 3.* versions.

Apply the tslint loader as preLoader in your webpack configuration.

### Webpack 3

```javascript
module.exports = {
module: {
loaders: [
{
test: /\.ts$/,
enforce: 'pre',
loader: 'tslint-loader',
options: { /* Loader options go here */ }
}
]
}
}
```

### Webpack 2

```javascript
Expand Down

0 comments on commit 7181669

Please sign in to comment.