mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
docs(v2): make correct path to webpack config module
This commit is contained in:
parent
dcbc3bcd1a
commit
f2137bb872
4 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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'],
|
||||
});
|
||||
|
|
|
@ -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'],
|
||||
});
|
||||
|
|
|
@ -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'],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue