Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Dec 23, 2018
1 parent 2a09706 commit 06fb694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/plugin/option-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Sometimes, you may want to generate some client modules at compile time.
module.exports = (options, context) => ({
clientDynamicModules() {
return {
name: 'constans.js',
name: 'constants.js',
content: `export const SOURCE_DIR = '${context.sourceDir}'`
}
}
Expand All @@ -281,7 +281,7 @@ module.exports = (options, context) => ({
Then you can use this module at client side code by:

``` js
import { SOURCE_DIR } from '@dynamic/constans'
import { SOURCE_DIR } from '@dynamic/constants'
```

## extendPageData
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/zh/plugin/option-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ module.exports = (option, context) => {
module.exports = (options, context) => ({
clientDynamicModules() {
return {
name: 'constans.js',
name: 'constants.js',
content: `export const SOURCE_DIR = '${context.sourceDir}'`
}
}
Expand All @@ -285,7 +285,7 @@ module.exports = (options, context) => ({
然后你可以在客户端这样使用你的模块:

``` js
import { SOURCE_DIR } from '@dynamic/constans'
import { SOURCE_DIR } from '@dynamic/constants'
```

## extendPageData
Expand Down

0 comments on commit 06fb694

Please sign in to comment.