Skip to content

Commit

Permalink
docs/CRACO example: Match project code style
Browse files Browse the repository at this point in the history
Co-authored-by: Titus <tituswormer@gmail.com>
  • Loading branch information
userzimmermann and wooorm committed May 9, 2022
1 parent 6ee652c commit 57135c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/docs/getting-started.server.mdx
Expand Up @@ -516,16 +516,15 @@ rewiring tool, such as [CRACO](http://github.com/gsoft-inc/craco).
<summary>Expand CRACO example</summary>

```js path="craco.config.js"
const { addAfterLoader, loaderByName } = require('@craco/craco')
const {addAfterLoader, loaderByName} = require('@craco/craco')

module.exports = {
webpack: {
configure: (webpackConfig) => {
configure(webpackConfig) {
addAfterLoader(webpackConfig, loaderByName('babel-loader'), {
test: /\.(md|mdx)$/,
test: /\.mdx?$/,
loader: require.resolve('@mdx-js/loader')
})

return webpackConfig
}
}
Expand Down

0 comments on commit 57135c6

Please sign in to comment.