docs(v2): make correct path to webpack config module

This commit is contained in:
Alexey Pyltsyn 2020-01-18 22:51:39 +03:00
parent dcbc3bcd1a
commit f2137bb872
4 changed files with 6 additions and 6 deletions

View file

@ -162,14 +162,14 @@ module.exports = function(context, options) {
rules: [ rules: [
{ {
test: /\.foo$/, test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'] use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
} },
], ],
}, },
}; };
}, },
}; };
} };
``` ```
## postBuild(props) ## postBuild(props)

View file

@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin', name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) { configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils; const {getCacheLoader} = utils;
config.modules.rules.push({ config.module.rules.push({
test: /\.foo$/, test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'], use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
}); });

View file

@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin', name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) { configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils; const {getCacheLoader} = utils;
config.modules.rules.push({ config.module.rules.push({
test: /\.foo$/, test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'], use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
}); });

View file

@ -157,7 +157,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin', name: 'docusaurus-plugin',
configureWebpack(config, isServer, utils) { configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils; const {getCacheLoader} = utils;
config.modules.rules.push({ config.module.rules.push({
test: /\.foo$/, test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'], use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
}); });