1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-12-01 21:42:08 +03:00

Add note about default mdx loader

This commit is contained in:
Connor Bär 2018-08-26 22:44:34 -03:00
parent 56c08d2285
commit 868b5351f6

View File

@ -104,12 +104,20 @@ Webpack configuration files named `webpack.config.js` will automatically be merg
module.exports = {
module: {
rules: [
{ test: /\.svg$/, loader: 'react-svg-loader' }
{
test: /\.svg$/,
use: [
{ loader: 'babel-loader' },
{ loader: 'react-svg-loader' }
]
}
]
}
}
```
**Careful**: When overwriting the loader for `mdx` files, make sure to include the default loader from `mdx-deck/loader`.
## Custom build setups
The core mdx-deck components can also be used in any React application,