Skip to content

Commit

Permalink
docs(v2): make correct path to webpack config module
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Jan 18, 2020
1 parent dcbc3bc commit f2137bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions website/docs/lifecycle-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ module.exports = function(context, options) {
rules: [
{
test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader']
}
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
},
],
},
};
},
};
}
};
```

## postBuild(props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils;
config.modules.rules.push({
config.module.rules.push({
test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils;
config.modules.rules.push({
config.module.rules.push({
test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils;
config.modules.rules.push({
config.module.rules.push({
test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
});
Expand Down

0 comments on commit f2137bb

Please sign in to comment.