Skip to content

Commit d1156a0

Browse files
authored
Update README.md
1 parent f0bf093 commit d1156a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ This plugin provides some custom webpack hooks (all are sync):
151151
```
152152
new ForkTsCheckerWebpackPlugin({
153153
tslint: true,
154-
vue: true,
155-
wildcard: '~' // Optional
154+
vue: true
156155
})
157156
```
158157

@@ -211,8 +210,7 @@ import Hello from '@/components/hello.vue'
211210
}
212211
```
213212

214-
6. The commonly used `@` path wildcard will work if you set up a `baseUrl` and `paths` (in `compilerOptions`) to include `@/*`. If you don't set this, then
215-
the fallback to options.wildcard and if this not exist the fallback will be `[tsconfig directory]/src` (we hope to make this more flexible on future releases):
213+
6. It accepts any wildcard in your TypeScript configuration:
216214
```
217215
// tsconfig.json
218216
{
@@ -224,6 +222,9 @@ the fallback to options.wildcard and if this not exist the fallback will be `[ts
224222
"paths": {
225223
"@/*": [
226224
"src/*"
225+
],
226+
"~/*": [
227+
"src/*"
227228
]
228229
}
229230
}

0 commit comments

Comments
 (0)