Skip to content

Commit 8cd2b3c

Browse files
committed
Merge branch 'master' into bugfix/fix-service-worker
2 parents ed1343f + b53c9b5 commit 8cd2b3c

File tree

3 files changed

+19
-37
lines changed

3 files changed

+19
-37
lines changed

.travis.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,12 @@ cache:
1010
- repositories
1111

1212
stages:
13-
- Lint
14-
- Test
1513
- Build
1614

1715
jobs:
1816
fast_finish: true
1917

2018
include:
21-
- stage: Lint
22-
name: Lint
23-
env: CACHE_TYPE=lint
24-
script:
25-
- yarn lint:js || travis_terminate 1
26-
- yarn lint:markdown || travis_terminate 1
27-
- yarn lint:social || travis_terminate 1
28-
29-
- stage: Lint
30-
name: Proselint
31-
language: python
32-
env: CACHE_TYPE=proselint
33-
python: 3.6
34-
cache:
35-
yarn: false
36-
npm: false
37-
pip: true
38-
directories:
39-
- $HOME/.cache
40-
install: pip install -r requirements.txt
41-
script: cp .proselintrc ~/ && proselint src/content
42-
43-
- stage: Build
44-
name: Build and Test
45-
if: branch != master OR type NOT IN (push, cron)
46-
env: CACHE_TYPE=build
47-
script:
48-
# run cypress against production site
49-
- yarn cypress:ci || travis_terminate 1
50-
# make sure links are not broken
51-
- yarn lint:links || travis_terminate 1
52-
5319
- stage: Build
5420
name: Build and Deploy
5521
if: branch = master AND type IN (push, cron)

src/content/configuration/watch.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ module.exports = {
7070

7171
## `watchOptions.ignored`
7272

73-
`RegExp` [`anymatch`](https://github.com/micromatch/anymatch)
73+
`RegExp` `string` `[string]`
7474

75-
For some systems, watching many file systems can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like `node_modules`:
75+
For some systems, watching many files can result in a lot of CPU or memory usage. It is possible to exclude a huge folder like `node_modules` using a regular expression:
7676

7777
__webpack.config.js__
7878

@@ -85,7 +85,20 @@ module.exports = {
8585
};
8686
```
8787

88-
It is also possible to have and use multiple [anymatch](https://github.com/micromatch/anymatch) patterns:
88+
Alternatively, a glob pattern may be used:
89+
90+
__webpack.config.js__
91+
92+
```javascript
93+
module.exports = {
94+
//...
95+
watchOptions: {
96+
ignored: 'node_modules/**'
97+
}
98+
};
99+
```
100+
101+
It is also possible to use multiple glob patterns:
89102

90103
__webpack.config.js__
91104

src/content/guides/typescript.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ T> To make imports do this by default and keep `import _ from 'lodash';` syntax
118118

119119
We use `ts-loader` in this guide as it makes enabling additional webpack features, such as importing other web assets, a bit easier.
120120

121+
W> `ts-loader` uses `tsc`, the TypeScript compiler, and relies on your `tsconfig.json` configuration. Make sure to avoid setting [`module`](https://www.typescriptlang.org/tsconfig#module) to "CommonJS", or webpack won't be able to [tree-shake your code](/guides/tree-shaking).
122+
123+
Note that if you're already using [`babel-loader`](https://github.com/babel/babel-loader) to transpile your code, you can use [`@babel/preset-typescript`](https://babeljs.io/docs/en/babel-preset-typescript) and let Babel handle both your JavaScript and TypeScript files instead of using an additional loader. Keep in mind that, contrary to `ts-loader`, the underlying [`@babel/plugin-transform-typescript`](https://babeljs.io/docs/en/babel-plugin-transform-typescript) plugin does not perform any type checking.
121124

122125
## Source Maps
123126

0 commit comments

Comments
 (0)