Skip to content

Commit 178ec30

Browse files
diogosalazaryyx990803
authored andcommitted
docs: fix typos (#810)
There are a few typos for some of the method names in the code sections
1 parent 86dbcd0 commit 178ec30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/plugin-dev.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ module.exports = (api, projectOptions) => {
6161
// modify webpack config with webpack-chain
6262
})
6363

64-
api.configureWepback(webpackConfig => {
64+
api.configureWebpack(webpackConfig => {
6565
// modify webpack config
6666
// or return object to be merged with webpack-merge
6767
})
6868

69-
api.regsiterCommand('test', args => {
69+
api.registerCommand('test', args => {
7070
// register `vue-cli-service test`
7171
})
7272
}
@@ -80,7 +80,7 @@ An important thing to note about env variables is knowing when they are resolved
8080
module.exports = api => {
8181
process.env.NODE_ENV // may not be resolved yet
8282

83-
api.regsiterCommand('build', () => {
83+
api.registerCommand('build', () => {
8484
api.setMode('production')
8585
})
8686
}
@@ -103,7 +103,7 @@ module.exports = api => {
103103
A plugin can retrieve the resolved webpack config by calling `api.resolveWebpackConfig()`. Every call generates a fresh webpack config which can be further mutated as needed:
104104

105105
``` js
106-
api.regsiterCommand('my-build', args => {
106+
api.registerCommand('my-build', args => {
107107
// make sure to set mode and load env variables
108108
api.setMode('production')
109109

@@ -117,7 +117,7 @@ api.regsiterCommand('my-build', args => {
117117
Alternatively, a plugin can also obtain a fresh [chainable config](https://github.com/mozilla-neutrino/webpack-chain) by calling `api.resolveChainableWebpackConfig()`:
118118

119119
``` js
120-
api.regsiterCommand('my-build', args => {
120+
api.registerCommand('my-build', args => {
121121
api.setMode('production')
122122

123123
const configA = api.resolveChainableWebpackConfig()

0 commit comments

Comments
 (0)