mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 05:42:34 +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: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.foo$/,
|
test: /\.foo$/,
|
||||||
use: [getCacheLoader(isServer), 'my-custom-webpack-loader']
|
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
## postBuild(props)
|
## postBuild(props)
|
||||||
|
|
|
@ -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'],
|
||||||
});
|
});
|
||||||
|
|
|
@ -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'],
|
||||||
});
|
});
|
||||||
|
|
|
@ -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'],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue